[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


IIS 7 Rewrite to move a domain

Posted on 2016-08-09
Medium Priority
Last Modified: 2016-09-04
I am using Server 2008 R2 to host some website.  Everything is good but I have multiple domains connecting to one site.  Now Google is indexing my site using a domain I do not want it to use.  So lets say I have the following:

I want Google to use www.newsite.com and not the others.  However Google is indexing with www.myoldsite.com now.  I can easily create new sites for each of the two sites that need to be redirected then create some 301 redirects.  However, to do this for each page would be a pain.  The only difference would be the domain name.  So for example if somebody went to www.myoldsite.com\contactus.php I want to do a 301 redirect to www.newsite.com\contactus.php.

I just want the domain name section changed.  It would also be good to do this with or without the www. in front of the domain name.  Can I do this with URL Rewrite?  If so how to a create these rules?
Question by:Christopher Most
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 41

Accepted Solution

Kyle Abrahams earned 2000 total points (awarded by participants)
ID: 41749354
The canonical rule should do the trick as described in #3:

Author Comment

by:Christopher Most
ID: 41749368
Do you think this would cause any problems with SEO?  Not sure if this uses 301 redirect which is recommended.
LVL 41

Expert Comment

by:Kyle Abrahams
ID: 41749370
The redirect type in the rule is permanent which is a 301.  If it were temporary it would be a 302.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

by:Christopher Most
ID: 41749377
I will give it a try tomorrow and let you know.  Thank You!

Author Comment

by:Christopher Most
ID: 41758401
Worked like a charm!  Thank You!
LVL 41

Expert Comment

by:Kyle Abrahams
ID: 41783518
User didn't close but affirmed it worked.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question