SetEnv PHPSATK_NICEURLS On RewriteBase /phpsatk/ RewriteEngine On RewriteCond %{REQUEST_FILENAME} !index.php RewriteCond %{REQUEST_FILENAME} !files/ RewriteRule ^([^\/\.]+)(\/([^\?]*))?$ index.php?app=$1&path=/$3&%{QUERY_STRING} # ^ APP ^^ PATH ^