Disable Directory Indexing

#143900
Viewing 4 replies - 1 through 4 (of 4 total)
  • Danial
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience that might have been caused due to that.

    There are no settings in Rank Math that would make those folders indexable/nonindexable.

    However, you can ask Google and other search engines to stop crawling those folders by adding this text to the robots.txt file at WordPress Dashboard > Rank Math > General Settings > Edit robots.txt:

    
    User-Agent: *
    Disallow: /wp-content/
    Disallow: /wp-includees/
    Allow: /wp-content/images/
    

    For more information, here is a link from Google regarding robots.txt:
    https://developers.google.com/search/docs/advanced/robots/intro

    I hope this resolves your issue.

    i did changes and purged caches but robots.txt not changing…

    https://www.legalaims.com/robots.txt

    User-agent: *
    Disallow: /wp-admin/
    Allow: /wp-admin/admin-ajax.php
    Disallow: /wp-content/uploads/wpforms/
    Noindex: /wp-includes/
    Sitemap: https://www.legalaims.com/sitemap_index.xml

    updated to these

    Danial
    Rank Math business

    Hello,

    I am not seeing your robots.txt being updated as well.

    Please try updating it from your FTP or web host File Manager if it does not work.

    I hope this resolves your issue.

    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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Disable Directory Indexing’ is closed to new replies.