htaccess and web.config changes

This commit is contained in:
Yuri Kuznetsov
2020-04-28 13:31:18 +03:00
parent 0532524a50
commit d7f46e039e
4 changed files with 7 additions and 7 deletions

View File

@@ -20,5 +20,5 @@ DirectoryIndex index.php index.html
RewriteRule .* - [E=HTTP_ESPO_CGI_AUTH:%{HTTP:Authorization}]
RewriteRule reset/?$ reset.html [QSA,L]
RewriteRule /?web\.config - [F]
</IfModule>

View File

@@ -9,4 +9,6 @@ RewriteEngine On
RewriteRule .* - [E=HTTP_ESPO_CGI_AUTH:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
RewriteRule ^ index.php [QSA,L]
RewriteRule /?web\.config - [F]

View File

@@ -9,4 +9,6 @@ RewriteEngine On
RewriteRule .* - [E=HTTP_ESPO_CGI_AUTH:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
RewriteRule ^ index.php [QSA,L]
RewriteRule /?web\.config - [F]

View File

@@ -4,10 +4,6 @@
<system.webServer>
<rewrite>
<rules>
<rule name="rule 1X" stopProcessing="true">
<match url="^/?reset/?$" />
<action type="Rewrite" url="reset.html" appendQueryString="true" />
</rule>
<rule name="RequestBlocking1" stopProcessing="true">
<match url="^/?data/config\.php$" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." />