[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 rewriteCode:
sudo service apache2 restartTo use mod_rewrite from within .htaccess files, edit the default VirtualHost with
Code:
sudo nano /etc/apache2/sites-available/defaultCode:
AllowOverride NoneCode:
AllowOverride AllRestart the server again:
Code:
sudo service apache2 restart



![[Image: vanguardly-logo-micro.png]](http://repo.vanguardly.com/brand/logos/vanguardly-logo-micro.png)
