Mobile app version of vmapp.org
Login or Join
Alves908

: Google indexed work-in-progress page. how to delete it from Google index? I developed a page under the following URL: example.org/dev Since the development is finished, I moved the page to the

@Alves908

Posted in: #Google #GoogleIndex #Indexing #RobotsTxt

I developed a page under the following URL: example.org/dev

Since the development is finished, I moved the page to the root at example.org/

For some reason, Google indexed the page during development. Hence, Google shows results leading to example.org/dev, even if this yields a (Wordpress) 404.

How can I tell Google to remove these pages? What I did for now, is to create a robots.txt with the following content:

# robots.txt
User-agent: *
Disallow: /dev/


Is there any other/better thing I can do?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

The best thing to do is redirect your entire dev directory to your main domain. The next time that Googlebot crawls it, it will find it moved. It will then remove the dev pages from the index and only include the main site.

You can implement the redirect in .htaccess like:

Redirect permanent /dev/ example.org/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme