SiteCozy

  • My account

Redirect all links to a 410 error to quickly de-index webpages

2018-08-11

Sometimes ago, Matt Cutts stated that Google took out webpages that returned a 410 faster than with 404. Since this 2014 video, we didn’t find any official google communication that contradicted this statement.

In HTACCESS, here is are the directives to redirect all pages to 410 except the robots.txt and the sitemap.xml:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/robots\.txt$
RewriteCond %{REQUEST_URI} !^/sitemap\.xml$
RewriteRule ^(.*)$ - [G]

I haven’t added the robots.txt and sitemap.xml to 410 because with a robots.txt & sitemap.xml in place it speeds up the process to de-index the web pages from Google Index. It is the fastest way to de-index URLs from the Google Index.

Related Posts:

  • How to move a website to a new domain name with same URL structure
  • Should you block admin-ajax.php in robots.txt?
  • Htaccess code for a WordPress subdomain multisite
Download our Broken link checker freeware here Buy a license key for the Sitecozy broken link checker

Customer Login

Lost password?

Categories

  • Webmaster advice
  • SEO advice
  • Web hosting
  • SiteCozy link checker KB
  • WordPress theme & plugin reviews
  • All articles
Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We test each product thoroughly and give high marks to only the very best. We are independently owned and the opinions expressed here are our own.

Copyright Sitecozy 2018