: 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
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?
More posts by @Alves908
1 Comments
Sorted by latest first Latest Oldest Best
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/
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.