Options +FollowSymLinks RewriteEngine on RewriteCond %{filename.php} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L] Post navigation How to configure the symfony project directory How to remove file extension using .htaccess