mod_rewrite
-
Tips – Tricks
How to install mod_rewrite on Ubuntu
mod_rewrite will not be isntalled by default when you install apache web server and php on Ubuntu. To use mod_rewrite on ubuntu you can use the the following command in the terminal # a2enmod rewrite Restart apache2 server # /etc/init.d/apache2 restart you can use the following sample .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}…