1
0

3 Commits

Author SHA1 Message Date
mathieu_berard
0a87a3a0cb Merge branch 'add-htaccess' of DTux/avion-poeme into master 2021-11-24 21:58:21 +00:00
mberard
a5a934a108 feat: add htacces to redirect php file 2021-11-24 22:57:51 +01:00
mathieu_berard
876a925f79 Merge branch 'fix-bug-picto-lang-apropos' of DTux/avion-poeme into master 2021-11-24 21:51:56 +00:00

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]