• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 505
  • 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?
0
ascendinternet
Asked:
ascendinternet
  • 3
1 Solution
 
askurat1Commented:
Do you want to do this in your .htaccess?
0
 
ascendinternetAuthor Commented:
We are using IIS7 - Windows!? So no, not .htaccess, I want to do it using the IIS7 URL Rewrite tool.
0
 
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.
0
 
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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