RewriteEngine On # Tell PHP that the mod_rewrite module is ENABLED. SetEnv HTTP_MOD_REWRITE On # Dont redirect direct links to files or directories to the index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule ^(.*)$ index.php?url=$1 [PT,L]