: 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
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/
More posts by @Angela700
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.