RewriteEngine On # limit access to .htaccess Order Allow,Deny Deny from all # don't rewrite CSS, JS, etc. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # all other go to index.php RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]