Merge branch 'add-htaccess' of DTux/avion-poeme into master

This commit is contained in:
mathieu_berard authored and Gogs committed 2021-11-24 21:58:21 +00:00
commit 0a87a3a0cb
1 file changed
+9
+9
View File
@@ -0,0 +1,9 @@
RewriteEngine On
# browser requests PHP
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^\ ]+)\.php
RewriteRule ^/?(.*)\.php$ /$1 [L,R=301]
# check to see if the request is for a PHP file:
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^/?(.*)$ /$1.php [L]