Demo page on google

I inadvertently have a couple of pages from a staging site that has snuck onto google. What’s the best course of action? Request a URL removal? Redirects?

The pages are PageSafe protected so there’s no worry of people seeing the staging site or anything but I’d like to get it taken care of regardless…

I guess a page removal request as you suggested. In the meanwhile try adding this to your htaccess

Header set X-Robots-Tag "noindex, nofollow"

1 Like

Yeah, I’ve got that noindex bit now now. I had un-clicked 'Enable robot meta tags" without also unchecking the index/follow options in RW. Thanks

I became fed up with adding robot.txt files to every site folder and this htaccess option seems to work. The sites are not even hidden and none appear in the search rankings. An explanation here https://yoast.com/prevent-site-being-indexed/

1 Like