php_flag register_globals off RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-l RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^web/(.*)$ cms.php?f=$1 [L]