# .htaccess RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !index.php RewriteRule (.+)\.php index.php?mod=$1 [QSA]