Add .htaccess removing the .php extension

This commit is contained in:
speedie 2023-06-10 11:47:11 +00:00
parent 30d0db9d5d
commit 6806f9ea5f

6
.htaccess Normal file
View file

@ -0,0 +1,6 @@
RewriteEngine On
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]