Mobile app version of vmapp.org
Login or Join
Angela700

: How to noindex certain Wordpress pages by default with Yoast? I have WP website with multiple campaign landing pages made with Page Builder. All campaign pages are under /campaign/ so urls are

@Angela700

Posted in: #MetaTags #Noindex #Seo

I have WP website with multiple campaign landing pages made with Page Builder. All campaign pages are under /campaign/ so urls are always type example.com/campaign/some-landing-page Now I would like to noindex by default all pages which url contains /campaign/ but I can't figure out how to do this with Yoast SEO. I managed to noindex all pages via Yoast settings but I only want to noindex those with /campaign/

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

1 Comments

Sorted by latest first Latest Oldest Best

 

@Correia994

Unfortunately I can't see that it is possible with Yoast unless you manually set each page to noindex manually.

However, if you have access to your website root with ftp or a file manager on your webserver you can do it quite easy with a robots.txt file.
In that file you can give Google bot and other search engines instructions to what they are allowed (or not allowed) to crawl and index.

To prevent all bots to index all content in the /campaign/ folder you need to add the following:

User-agent: *

Disallow: /campaign/

Save it and test it in your Google Search Console (if you have it).
That's it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme