0

How I can remove the non-existing pages URL from Google.

There are a lot of pages which doesn't exist on our website. How to remove their URL from Google.

  • How long has it been since the pages have been removed? If it is more than two weeks something else is probably wrong? Google automatically de-indexes pages that return 404 Not found status. How many URLS are you talking about anyway? Google has a tool to remove them one at a time more quickly, but if you have a lot that won't work. – Stephen Ostermiller Feb 25 at 14:03
1

If the pages are minimal, you can submit in the Google Search Console - Removal Tool found here: https://www.google.com/webmasters/tools/removals

If the pages are greater, you can submit a new sitemap to let Google update your indexed URLs and give time for them to de-index the irrelevant URLs as long as they are not found or have the 'noindex' tag.

In both of the cases, if you're not aware why lot of pages are appearing on your website that you have not created, please check the following:

  • Dealing with Hacked Sites/Content
  • Your external/internal backlinks that point to the non-existent URL
0
  1. Get into knowledge repeated patterns containing in non-existing urls
  2. Fire 410 Gone with PHP, like:

<?php if ($_SERVER['REQUEST_URI'] == '(pattern1|pattern2)') { header ("HTTP/1.1 410 Gone"); } ?>

On this way Google learns quickly, that these urls don't exist and de-indexes them quickly.

Another way is to fire noindex with X-Robots-Tag, like

<?php
    if ($_SERVER['REQUEST_URI'] == '(pattern1|pattern2)') {
      header("X-Robots-Tag: noindex, nofollow", true);
    }
?>

but the de-indexing happens (much) slower.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.