mod_rewrite does not work on Ubuntu 16.04

Asked

Viewed 191 times

0

I have a VPS with Ubuntu 16.04 but I’m not able to make it work mod_rewrite. By exhuming the command sudo a2enmod rewrite, I receive the following reply:

"Module rewrite already enabled"

But when I do phpinfo(), no "Configuration -> apache2handler -> Loaded modules session".

Man 000-default.conf is like this:

<Directory "/var/www/">
   Options Indexes FollowSymLinks
   AllowOverride All
   Require all granted
</Directory>

In Windows the session "Configuration -> apache2handler -> Loaded modules" appears normally.

  • See if this helps? http://www.iasptk.com/enable-apache-mod_rewrite-ubuntu-14-04-lts/

  • All these steps have been done before, yet I did it again and still not showing the "Loaded Modules" (Loaded Modules)

1 answer

0

Edit your file sudo nano /etc/apache2/sites-available/seusite.conf

<Directory /var/www/html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>

Save and restart apache sudo service apache2 Restart

Edita also sudo nano /var/www/html/. htaccess

adds this line

Rewriteengine on

Browser other questions tagged

You are not signed in. Login or sign up in order to post.