How can I add the Robots.txt default text in plugin

#540977
  • Resolved waqas nazir
    Rank Math free

    Hi RankMath team,

    Please let me know how can I add the default robot txt code into the plugin in rank math. For better understanding.

    Currently plugin show this “User-Agent: *
    Disallow:

    Thanks

Viewing 1 replies (of 1 total)
  • Hello

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    Below is the default robots.txt code. Rank Math should automatically add it. As it didn’t add the code, please check if you have any physical robots.txt file in the server. If not, then try adding this code in Rank Math > General Settings > Edit robots.txt

    # This file is automatically added by Rank Math SEO plugin to help a website index better
    # More info: https://s.rankmath.com/home
    User-Agent: *
    Disallow: /wp-admin/
    Allow: /wp-admin/admin-ajax.php
    
    Sitemap: http://rankmath.local/sitemap_index.xml

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    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 ‘How can I add the Robots.txt default text in plugin’ is closed to new replies.