Skip to content

Commit

Permalink
Add web.config
Browse files Browse the repository at this point in the history
sorensenmarius committed Jan 17, 2024
1 parent c868508 commit 0620590
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kabinizer-front-end/public/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="React Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

0 comments on commit 0620590

Please sign in to comment.