Mobile app version of vmapp.org
Login or Join
Yeniel560

: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Enforce canonical hostname"

@Yeniel560

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Enforce canonical hostname" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" negate="true" pattern="^www.example.com$" />
</conditions>
<action type="Redirect" url="http://www.example.com/Default.aspx#&&{R:1}" redirectType="Permanent" />
</rule>
<rule name="Remove .asp extension" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add matchType="IsFile" negate="true" />
<add matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="{R:1}.asp" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme