Options +FollowSymLinks +ExecCGI RewriteEngine On #Ignore .yml files RewriteRule ^(.*).yml$ index.php [QSA,L] #If request a file - Just send it RewriteCond %{REQUEST_FILENAME} !-f #Don't load directory RewriteCond %{REQUEST_FILENAME} -d #Load our front controller RewriteRule ^(.*)$ index.php [QSA,L]