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:38:45+05:30 2024-10-05T17:38:45+05:30In: Wordpress

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

Suppose, On a WordPress site example.com, I can see these two URLs https://example.com/robots.txt and https://example.com/?robots=1 exist and they both are robots.txt files.

The code in the robots.txt file:

# START YOAST BLOCK
# ---------------------------
User-agent: *
Disallow: /wp-admin/

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

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

However, the code in ?robots=1 file:

# 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

The code generated in ?robots=1 file is the output of the Yoast plugin to disallow internal search URLs on the website pages.

I want to know what purpose these files robots.txt and ?robots=1 serve on a WordPress site.

robots.txt
  • 0
  • 0
  • 11
  • 2
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Related Questions

  • How do I disallow specific page from robots.txt
  • Robots.txt file not getting updated in WordPress site using Advanced Crawl optimization setting in Yoast premium
  • 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-05T17:41:23+05:30Added an answer on October 5, 2024 at 5:41 pm

    robots.txt file is placed in the root directory of your WordPress site that provides instructions to the web crawler as to which part of the site is crawled or not.

    For example, you can always block certain directories, web pages, or other resources on your website from getting indexed by search engines like Google or Bing.

    You can see the contents of the robots.txt file by going to the page https://example.com/robots.txt.

    On the other hand, meta robots tag ?robots=1 is used at a page level to control whether individual pages should be indexed or followed.

    When you visit a page on your website with the ?robots=1 query parameter, then you can check the robots meta tags settings for that specific page.

    You can see how indexing instructions like index, noindex, follow, and nofollow are applied to your specific page.

      • 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

    Robots.txt file not getting updated in WordPress site using Advanced ...

    • 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.