Where to input dynamic noindex URL?
-
Hello,
I am trying to set urls which have “toc” in them to noindex.
I found this code to use:
SetEnvIf Request_URI “/toc/“ NOINDEX
Header set X-Robots-Tag “noindex, follow” env=REDIRECT_NOINDEXBut I am not sure where to put it. If I put it in header.php, what code do I need before and after this?
OR
I also saw this code which I put in my robots.txt, but not sure which method is better. Also the following code sets /toc to noindex BUT /toc/ is still indexed:
Disallow: /*=tocBest,
Chris
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Where to input dynamic noindex URL?’ is closed to new replies.