updated htaccess file

This commit is contained in:
Gary 2025-05-14 16:15:07 +01:00
parent afc3734a41
commit 79aaa7e4de
2 changed files with 6 additions and 4 deletions

6
.htaccess Normal file
View File

@ -0,0 +1,6 @@
RewriteEngine On
# Remove .php extension from URLs
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+)$ $1.php [L]

View File

@ -1,4 +0,0 @@
RewriteEngine On
# RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.php [NC,L]