1
0

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

This commit is contained in:
mathieu_berard 2021-11-24 21:58:21 +00:00 committed by Gogs
commit 0a87a3a0cb

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]