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
Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

840 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