About Robots.txt

#666850
  • Resolved FinanceWalk
    Rank Math free

    Hi,

    I can see in GSC that some pages are under “Alternate page with proper canonical tag” with “/amp” extension and pages under “crawled – currently not indexed” with “/feed” extension.

    What rule should I add in Robots.txt to deindex such pages? If yes, where in RankMath can I do this?

    Please guide.

    Thank you.

Viewing 1 replies (of 1 total)
  • Hello,

    I apologize for the issue you’re facing with the “Alternate page with proper canonical tag” and “crawled – currently not indexed” pages in Google Search Console.

    To deindex these pages, you can add specific rules to your robots.txt file. However, it’s important to note that the robots.txt file is primarily used for controlling crawling, not indexing. To prevent pages from being indexed, it’s recommended to use the appropriate meta tags or directives.

    For the “Alternate page with proper canonical tag” pages with the “/amp” extension, you can add the following rule to your robots.txt file:

    User-agent: *
    Disallow: /*/amp$

    This rule will disallow crawling of any URLs that end with “/amp”.

    As for the “crawled – currently not indexed” pages with the “/feed” extension, it’s important to understand that blocking access to feed pages is not recommended by Google. However, if you still want to prevent search engine crawlers from accessing or crawling these pages, you can add the following rule to your robots.txt file:

    User-agent: *
    Disallow: */feed/

    Please note that modifying the robots.txt file should be done with caution, as incorrect rules can have unintended consequences. It’s always a good idea to keep a backup of your existing robots.txt file before making any changes.

    To edit your robots.txt file using Rank Math, you can go to Rank Math SEO → General Settings → Edit robots.txt in your WordPress admin area. If you don’t see this option, please ensure that you are using the Advanced Mode in Rank Math.

    I hope this helps! If you have any further questions or need assistance, please feel free to ask.

    Thank you.

    Sources:
    Alternate Page with Proper Canonical Tag Status in Google Search Console » Rank Math
    How to Fix the “Indexed, though blocked by robots.txt” Error » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    What Are the Best Robots.txt File Rules for Multisite? » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘About Robots.txt’ is closed to new replies.