-
Redirect all urls to the new website with .htaccess
-
Disallow all search engines with robots.txt
-
In Google Webmaster Tools, identify your website and remove urls with https://www.google.com/webmasters/tools/url-removal
-
In GWT, verify that in https://www.google.com/webmasters/tools/robots-testing-tool it's your latest robots.txt
-
Finally, wait to see modifications. Use 'site:http://myoldsite.com' in Google to see all referenced url for this domain.
Last active
August 29, 2015 14:13
-
-
Save ajaegers/d6081a8d1845131db3b4 to your computer and use it in GitHub Desktop.
SEO: Properly remove old urls/domain from Google index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !/robots.txt [NC] | |
Rewriterule ^(.*)$ http://yournewsite.com/$1 [L,R=301] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: * | |
Disallow: / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment