<rewrite> <rules> <rule name="Canonical Host Name" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="^pctechrescue\.com$" /> </conditions> <action type="Redirect" url="http://techrescue.mn/{R:1}"redirectType="Permanent" /> </rule> </rules> </rewrite>
This takes any link that has “pctechrescue.com” as the prefix and automatically rewrites it to have “techrescue.mn” as the prefix, thereby saving any bookmarks or direct links out there.
For instance:
http://pctechrescue.com/category/techtalk/ is automatically changed to:
http://techrescue.mn/category/techtalk/.