Hi,
Google insists that one of our staging sites needs to be indexed despite
"disallow" in robots.txt and a half-dozen other methods for preventing
Google from indexing it (including submitting it for removal from their
index). The staging site is even protected with a RequireAll statement
for the DocumentRoot based on the IP, which then results in a 404 and
other errors in GSC. This impacts our SEO and also causes GSC to stop
processing the rest of our site.
The next steps I'd like to do is to redirect anyone not in that
RequireAll statement to be redirected to the production site. Is this
possible? Perhaps a RewriteCond that depends upon certain IPs, then
otherwise redirects to the production site?
Thanks,
Dave
- [users@httpd] Redirecting based on IP Dave Wreski
-