I need to remove some pages from indexing but i still need to index subdomain links.

I have this website structure

/ -- main page
/region/ -- regions
/region/1 -- specific region with cities and links to %city-name%.example.com

How can i remove (region, region/id) from indexing but keep indexing links with subdomains?

2 Answers 2


A solution using noindex, follow is not going to last. Over time Google will inevitably treat it as noindex, nofollow. Here's a Search Engine Roundtable post from 2017 on the subject.

It would be easier to handle this at the server level, rather than using meta tags. You can just leave out the follow.


location /region/ {
    add_header X-Robots-Tag "noindex";

location /region/1 {
    add_header X-Robots-Tag "noindex";

# or rather
location ~ ^/region/ {
    add_header X-Robots-Tag "noindex";


<LocationMatch "^/region/">
    Header set X-Robots-Tag "noindex"

I resolved this question by adding the following to meta data.

<meta name="robots" content="noindex, follow"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.