RewriteEngine in Apache

1)

$ a2enmod rewrite

2)

$ /etc/init.d/apache2 restart

3)



    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]