Solved

IIS 7 Rewrite to move a domain

Posted on 2016-08-09
6
19 Views
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:
www.myoldsite.com
www.newsite.com
www.licplate.com

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?
0
Comment
Question by:Christopher Most
  • 3
  • 3
6 Comments
 
LVL 39

Accepted Solution

by:
Kyle Abrahams earned 500 total points (awarded by participants)
ID: 41749354
The canonical rule should do the trick as described in #3:
http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#canonical
0
 

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.
0
 
LVL 39

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.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

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

Author Comment

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

Expert Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now