Add files via upload

only if you are using apache, else remove it
This commit is contained in:
nolanwhy 2023-02-04 21:57:44 +01:00 committed by GitHub
parent ed98a40715
commit cabb23a3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
.htaccess Normal file
View File

@ -0,0 +1,21 @@
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteRule ^(.*)\.aspx$ $1 [L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteRule ^(.*)\.ashx$ $1 [L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteRule ^(.*)\.html$ $1 [L]