RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond $1 !^(static|uploads) RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]