Options -Indexes RewriteEngine on RewriteRule \.git - [F] RewriteRule ^$ index.php [L] RewriteCond ^([a-z0-9]+)/?$ index.php?link=$1 [L,QSA]