-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathWeb.config
More file actions
24 lines (24 loc) · 1.14 KB
/
Web.config
File metadata and controls
24 lines (24 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Single page" stopProcessing="true">
<match url="(.*?)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Redirect" url="/#{R:1}" redirectType="Permanent" />
</rule>
<rule name="Domain redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(www.semquran.com|semantic-quran.azurewebsites.net)$" />
</conditions>
<action type="Redirect" url="http://semquran.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>