Sorry, you do not have permission to ask a question, You must login to ask a question.

Sorry, you do not have permission to ask a question.

brainchime.com

brainchime.com

brainchime.com Navigation

  • Home
  • About Us
  • Contact Us

Mobile menu

Close
  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

brainchime.com Latest Questions

Admin
Admin
Asked: October 5, 20242024-10-05T17:57:11+05:30 2024-10-05T17:57:11+05:30In: Wordpress

Robots.txt file not getting updated in WordPress site using Advanced Crawl optimization setting in Yoast premium

I have enabled the Yoast premium plugin setting to Prevent crawling of internal site search URLs i.e. Add a disallow rule to robots.txt file to prevent the crawling of URLs like ?s=, /search/ and /page/*/?s=.
Under Advanced Crawl optimization setting which seems to be not working on my WordPress site(example.com) where the Yoast Premium plugin is installed.

As per this setting, a disallow rule should be added to the robots.txt but the same does not happen at my end.
This is my robots.txt after enabling and saving the option Add a disallow rule to your robots.txt file to prevent the crawling of URLs like ?s=, /search/ and /page/*/?s=

# START YOAST BLOCK
# ---------------------------
User-agent: *
Disallow:

Sitemap: https://example.com/sitemap_index.xml

# ---------------------------
# END YOAST BLOCK

There is no change being made to this robots.txt file placed in the root of the WordPress site. Why?

robots.txtyoast
  • 0
  • 0
  • 11
  • 8
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Related Questions

  • How do I disallow specific page from robots.txt
  • how can i do seo using Yoast Premium for Q&A website
  • Should I no index category and tag pages wordpress?
  • what is the difference between the two files ?robots=1 and robots.txt?
  • How Google interprets the default rules generated by Yoast plugin in the robots.txt file?
Leave an answer

Leave an answer
Cancel reply

Browse
Browse

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Admin
    Admin
    2024-10-05T18:01:50+05:30Added an answer on October 5, 2024 at 6:01 pm

    I have enabled Prevent crawling of internal site search URL settings for the Advanced Crawl optimization; however, I cannot see the added directives to my robots.txt file.

    Enabling the settings Prevent crawling of internal site search URLs
    Add a disallow rule to my robots.txt file to prevent the crawling of URLs like ?s=, /search/ and /page/*/?s=.”, this should add the following directives in the robots.txt file:

    Disallow: /?s=
    Disallow: /page/*/?s=
    Disallow: /search/

    However, I observed that the crawl directives would not be added to my default robots.txt file. Instead, it has already been added to the static robots.txt file here: https://example.com/?robots=1.

    the code added to static robots.txt which is the Yoast output.

    # START YOAST BLOCK
    # ---------------------------
    User-agent: *
    Disallow: /?s=
    Disallow: /page/*/?s=
    Disallow: /search/
    Disallow: /wp-json/
    Disallow: /?rest_route=
    
    Sitemap: https://example.com/sitemap_index.xml
    # ---------------------------
    # END YOAST BLOCK
      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

Sidebar

Statistics

  • Questions 143
  • Answers 177
  • Comments 0
  • Popular
  • Answers
  • Admin

    Why do we use OVERLAY keyword in data structure subfields ...

    • 12 Answers
  • Admin

    How to call sql stored procedure with output parameter from ...

    • 6 Answers
  • Admin

    How to use declare global temporary table statement in RPGLE?

    • 5 Answers
  • Admin
    Admin added an answer CPF4131 is a record format level check error. This indicates… October 18, 2024 at 1:58 am
  • Admin
    Admin added an answer To open the command prompt with administrator rights you can… October 17, 2024 at 12:27 am
  • Admin
    Admin added an answer In AS400, "AS" stands for Application system. This article discusses… October 13, 2024 at 12:49 pm

Related Questions

  • Admin

    How do I disallow specific page from robots.txt

    • 1 Answer
  • Admin

    how can i do seo using Yoast Premium for Q&A ...

    • 1 Answer
  • Admin

    Should I no index category and tag pages wordpress?

    • 0 Answers
  • Admin

    what is the difference between the two files ?robots=1 and ...

    • 1 Answer
  • Admin

    How Google interprets the default rules generated by Yoast plugin ...

    • 1 Answer

Trending Tags

.htaccess (1) as400 (123) bing-webmaster (2) control-language (12) db2 (33) ftp (8) google-adsense (1) google-search-console (3) https-redirect (1) iasp (4) ifs (22) jar (4) operations (3) php-my-admin (1) qshell (3) robots.txt (4) rpg (26) stored-procedure (3) stroed procedure (1) triggers (1) yoast (4)

Explore

  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

Footer

BrainChime

BrainChime is a blog that posts question-and-answer-based format articles on diverse topics and engages in discussions by allowing people to provide answers/comments without the need to register and log in.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • FAQs
  • Categories
  • Tags

© 2024 BrainChime. All Rights Reserved
by BrainChime.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.