Xml file for Rewrite Rules

Modified on 2011/06/17 01:31 by Charles — Categorized as: Website Design

Table of Contents [Hide/Show]


Xml file for Rewrite Rules

This page explains the syntax of the Xml File for Rewrite Rules.

Xml Syntax for Rewrite Rules

<?xml version="1.0" encoding="utf-8" ?>
<RewriteRules>
	<RewriteRule PathType="Normal" LookFor="/home.html" SendTo="/default.aspx" />
	<RewriteRule PathType="Absolute" LookFor="http://www.mysite.ca/cmsadmin.html" SendTo="http://admin.mysite.ca/default.aspx" />
	<RewriteRule PathType="Authority" LookFor="mysite.ca" SendTo="www.mysite.ca" />
	<RewriteRule RedirectPath="true" PathType="PathAndQuery" LookFor="/index1.aspx?page=Charles" SendTo="~/Charles.aspx" />
	<RewriteRule PathType="PrefixMatch" LookFor="http://joe.mysite.ca" SendTo="http://www.mysite.ca/joe" />
</RewriteRules>

Notes

The xml file contains:
Note: Multiple rewrite rules can be executed for a page.