[HOW-TO]How to enable mod_rewrite in Sentora
12-18-2014, 08:53 PM
(This post was last modified: 12-18-2014, 09:30 PM by Cantalupo.)
Activate the mod_rewrite module with
And restart the apache
or
To use mod_rewrite from within .htaccess files, edit the default VirtualHost with
And change the first two occurrences of
to
Save and exit the nano editor via CTRL-X, “y” and ENTER.
Restart the server again:
Voila! To check if everything is activated correctly, check your phpinfo() output. It should have this in it:
Code:
sudo a2enmod rewrite
Code:
sudo service apache2 restart
To use mod_rewrite from within .htaccess files, edit the default VirtualHost with
Code:
sudo nano /etc/apache2/sites-available/default
Code:
AllowOverride None
Code:
AllowOverride All
Restart the server again:
Code:
sudo service apache2 restart