diff options
-rw-r--r-- | web.config | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/web.config b/web.config new file mode 100644 index 0000000..3465890 --- /dev/null +++ b/web.config @@ -0,0 +1,28 @@ +<configuration> + <system.webServer> + <rewrite> + <rules> + <clear /> + <rule name="BlockAccessToPublic" patternSyntax="Wildcard" stopProcessing="true"> + <match url="*" /> + <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> + <add input="{URL}" pattern="/web/*" /> + </conditions> + <action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page using the credentials that you supplied." /> + </rule> + <rule name="RewriteAssetsToPublic" stopProcessing="true"> + <match url="^(.*)(\.css|\.js|\.jpg|\.png|\.gif|\.ico)$" /> + <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> + </conditions> + <action type="Rewrite" url="web/{R:0}" /> + </rule> + <rule name="RewriteRequestsToPublic" stopProcessing="true"> + <match url="^(.*)$" /> + <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> + </conditions> + <action type="Rewrite" url="web/app.php/{R:0}" /> + </rule> + </rules> + </rewrite> + </system.webServer> +</configuration> |