InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

SEO tutorials

  • How to change twitter handle and its impact on traffic
  • How to do keyword traffic research using adword
  • How to make best use of Alexa
  • How to migrate your site from one domain to another
  • How to monitor 404 pages on your site
  • How to remove urls from Google index using webmaster tools
  • How to undo HTTP 301 site/domain redirect
  • Verify a web site in google search console
  • Wordpress SEO - beginner guide
  • Xml sitemap - quick introduction
  • robots.txt
  • www vs non-www domain which is better for your site?
 
  • Home
  • > Tutorials
  • > Web Development
  • > SEO

How to undo HTTP 301 site/domain redirect

By admin | Last updated on Mar 20, 2016

In case you have moved a site to new domain and set all the HTTP 301 redirects (HTTP permanent redirects), then user who visits your old site is redirected to new site. If the domain is significantly different, then there are brand implications. It is a good idea to do enough due diligence before you move a site.

Lets take a case where you move from olddomain.com to newdomain.com and set all the HTTP 301 redirects. Then after some time you decide to move back to old domain (olddomain.com) for some reasons. Here are some suggestions which you can consider:

  1. First of all avoid the move back to olddomain.com if possible. Moving back a site to old domain can be pretty involving task with many uncertainties and you may lose some traffic.
  2. In case the move to new domain was very recent, first remove all 301 from old domain to new domain.
  3. Search engines might have stored permanent redirects and may not crawl your old site that frequently for those. So in that case submit a sitemap to Google and other search engines for the old domain. That way when they crawl the urls, they won’t get HTTP 301 and can reindex them.
  4. You may want to block new domain using robots.txt for crawlers. Here is the robots.txt you can use:
    User-agent: *
    Disallow: /

    In case the move was not recent, then you may want to also consider putting HTTP 301 redirect header from new domain urls to old domain urls.

  5. Also consider removing new domain urls from Google and other search engine webmaster tools if the move was recent. For case where move was done long time back, I think this step won’t be a good idea. Here is how removal looks like in Google webmaster tool:
    google-webmaster-remove-site-url-screenAlso note that once you remove urls or complete directory from Google index using webmaster tools, it gives you option to re-include those in index. But you should not rely on that feature too much. But it can be life saver in case you accidentally remove a url or directory.

 

Some points to note:

  1. Undoing a permanent move (HTTP 301) is not recommended. Its best to avoid it. Undoing temporary move (HTTP 302) is much easier to manage as it is meant to be temporary.
  2. Whenever you move to a new domain (or move back), there is always some lose of traffic and some brand confusion.

Suggested posts:

  1. How to setup ssl (https) for your site on Ubuntu Linux
  2. Using python to analyze bots from apache logs
  3. Traceroute outcome from Bangalore to AWS Virginia and California
  4. Verify a web site in google search console (webmaster tools)
  5. Comic strip – Video ads and recursion
  6. Review of Haxe nme for cross platform mobile games development
  7. How to display wordpress page list with specific custom field value
  8. How to create rss feed for wordpress blog on Google feedburner
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged SEO, Tutorials, Webmaster
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress