KILARU CHAITANYA
KILARU CHAITANYA

Reputation: 11

301 Permanent Redirect to another Domain

I want to Redirect the old domain to new domain and without having different resources for each is it possible to use the same resource in IIS for both domains? Any suggestions please let me know

Upvotes: 1

Views: 837

Answers (1)

Panama Jack
Panama Jack

Reputation: 24448

IF I understand you correctly you want www.old.com to go to www.new.com. You should be able to put this in your web.config file of the old site.

<system.webServer>
<httpRedirect enabled=”true” destination=”http://www.my-new-site.com” httpResponseStatus=”Permanent” />
</system.webServer>

You can manually do it in IIS. Here are some steps.

  1. Open IIS Manager and locate the website under sites
  2. Important! Verify that it shows the correct website name at the top of the screen
  3. Under the IIS section open “HTTP Redirect”
  4. Put a check in “Redirect requests to this destination” and type in the new URL
  5. Change the status code to “Permanent 301″
  6. Click Apply (this results in an HTTP status code of: HTTP/1.1 301 Moved Permanently)

Upvotes: 1

Related Questions