Reputation: 127
Im looking for a Url Rewrite rule for the following:
Id like to 301 redirect a domain to a new domain and keep the full url intact.
so for example:
so on and so forth. Basically a swap like for like and just the domain to change.
Upvotes: 1
Views: 4862
Reputation: 3583
You will put in a rewrite rule like this in the site that hosts mydomain.co.uk
<rule name="Full URL to new domain">
<match url="(.*)" />
<action type="Redirect" url="http://www.mydomain2.com/{R:0}" />
</rule>
Upvotes: 2