X-Robots-Tag Wordpress Subsites
I am wrestling a bit with implementing a flexible X-Robots-Tag solution
with Wordpress subsites. The issue is that I'd like to be using some
subsites for development and would like to tell any engines to index but
don't display any pages. My understanding is that X-Robots-Tag should take
care of this.
I've tried (our_dev is the subsite):
SetEnvIf Request_URI "^/our_dev/(.*)" is_dev
Header set X-Robots-Tag "noindex, nofollow, noarchive" env=is_dev
and many variations of RewriteRules but the URL isn't changing (which
keeps creating an infinite loop); I am just trying to set a header based
on a particular state.
Any help would be wonderful.
No comments:
Post a Comment