Solved

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

Posted on 2014-02-10
2
590 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

679 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