RewriteEngine on #Local files RewriteRule ^index.php.*$ - [L] RewriteRule ^favicon.ico$ - [L] RewriteRule ^script.js$ - [L] RewriteRule ^style.css$ - [L] RewriteRule ^([0-9]+)([0-9]+)?([0-9]+)?([0-9]+)?([0-9]+)?$ index.php?id=$1 [L] RewriteRule ^(.*)$ /index.php?name=$1 [L]