DTux
/
dtux__avion-poeme
Archived
1
0
Fork 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
1 changed files with 9 additions and 0 deletions

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]