[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 481
  • Last Modified:

URL Redirect with IIS7 URL Rewrite Tool

I will probably kick myself when I see the answer - but I can't figure it at the moment!

I have 2 domain names pointing at one IIS7 website. Using the URL Rewrite tool I want one domain to be rewritten to the other (i.e. send a 301 Permanent).

So -
www.domain2.co.uk should redirect to www.domain1.com
domain2.co.uk should redirect to www.domain1.com
domain1.com should redirect to www.domain1.com

How do I configure the URL Rewrite tool to acheive the above?
  • 3
1 Solution
Do you want to do this in your .htaccess?
ascendinternetAuthor Commented:
We are using IIS7 - Windows!? So no, not .htaccess, I want to do it using the IIS7 URL Rewrite tool.
ascendinternetAuthor Commented:
I found that we did not have the latest version of URL Rewriter installed (v2). I installed it and used one of the provided templates and it is now working as required.
ascendinternetAuthor Commented:
No answers were provide by the community and I found the solution myself.

I left the question on because I thought it might be useful for others. I am happy for it to be deleted though.

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now