mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
FIX Add redirects to public/
for iis (#263)
FIX Add redirects to `public/` for iis
This commit is contained in:
parent
65b2a72843
commit
6035ccd689
23
web.config
Normal file
23
web.config
Normal file
@ -0,0 +1,23 @@
|
||||
<!-- Routing configuration for Microsoft IIS web server -->
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<rewrite>
|
||||
<rules>
|
||||
<rule name="SilverStripe Global URLs">
|
||||
<match url="^(.*)$" />
|
||||
<conditions>
|
||||
<add input="{R:1}" matchType="Pattern" pattern="public(/|$)" negate="true" />
|
||||
</conditions>
|
||||
<action type="Rewrite" url="public/{R:1}" appendQueryString="true" />
|
||||
</rule>
|
||||
<rule name="SilverStripe Preprocessed URLs" stopProcessing="true">
|
||||
<match url="^(.*)$" />
|
||||
<conditions>
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
||||
</conditions>
|
||||
<action type="Rewrite" url="public/index.php" appendQueryString="true" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
</system.webServer>
|
||||
</configuration>
|
Loading…
Reference in New Issue
Block a user