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