Solved

Rebranding.  Change domain ONLY.  How to change/redirect URL from old to new.

Posted on 2014-02-10
2
573 Views
Last Modified: 2014-02-11
Our company changed it's name and so the URL for all of our IN HOUSE HOSTED web sites and web applications.

How can I "redirect" www.OLDDomainName.com/Whatever to www.NEWDomainName.com/Whatever?

Some pages are ....com/default.htm and some are ....com/default.aspx.

Then some web applications are virtual directories like, www2.DomainName.com/WebApplication/default.aspx


Both the old and the new URLs point to all the same pages.  We have one web server and one set of web sites.   I just want for when someone browses to OldDomain.com it changes or redirects them to NewDomain.com.  What shows in the address bar is the primary concern.

I tried putting a META permanent redirect "301" in the <head> of a page but it just made an infinite loop since for both URLs it's the same actual page.

Windows Server 2008 R2, IIS 7.5, ASP.Net and plain HTML


Thanks!  :-)
0
Comment
Question by:megnin
2 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 39849242
A quick google for 301 iis gives me

http://www.iis.net/configreference/system.webserver/httpredirect

I am not an MS person, hence a link.
0
 
LVL 1

Author Comment

by:megnin
ID: 39849997
Hi,

Thank you for the reply.  I did something similar, but used "URL Rewrite" instead:
http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

It looks like your method would work just as well so I'll credit you with the answer.

Thanks again for the reply.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 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

14 Experts available now in Live!

Get 1:1 Help Now