How to hide file extension with .htaccess + Access Restriction
3 answers
You can use this rewrite rule .htaccess
to remove the extensionphp
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
Hello,
Source: http://alexcican.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/
+1
source to share