This commit is contained in:
Thijs Stobbelaar 2023-09-26 19:40:00 +02:00
parent 2bbcb331ba
commit e5a138157b

8
.htaccess Normal file
View file

@ -0,0 +1,8 @@
RewriteEngine On
# Check if not an existing directory
RewriteCond %{REQUEST_FILENAME} !-d
# Check if appending .php points to an existing file
RewriteCond %{REQUEST_FILENAME}\.php -f
# Rewrite the neat URL to its .php counterpart
RewriteRule ^(.*)$ $1.php [L]