RewriteEngine On # Installation directory # RewriteBase / # Protect application and system files from being viewed # RewriteRule ^(application|modules|system) - [F,L] # On some servers is necessary to set FollowSymlinks to run mod_rewrite rules, esp. for win servers # Options +FollowSymlinks # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php?q=$1 [QSA,L]