Added htaccess

This commit is contained in:
CommanderRedYT
2020-11-07 12:53:59 +01:00
parent 957419fedc
commit e435b8b5ef

10
.htaccess Normal file
View File

@@ -0,0 +1,10 @@
RewriteEngine On
RewriteBase /
# redirect html pages to the root domain
RewriteRule ^index\.html$ / [NC,R,L]
# remove filename
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteRule ^([^\.]+)$ $1.html [NC,L]