Archive for the 'Linux' > 'Apache' Category


To install Mod-Rewrite, its actually pretty simple.

Enter the following line to the terminal:
sudo a2enmod rewrite
The line adds a .load to /etc/apache2/mods-enabled/ and the module will be loaded when apache next starts.

To force a restart type:
sudo /etc/init.d/apache2 force-reload
Finally, you have to make sure that RewriteEngine is on in your apache config. Personally, I enter it into my .htaccess file but i believe apache2.conf works too.

Enter:
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
Hope this helps.

Any support needed check out: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

Posted by OLLIE at 13:22pm