Disable virtual robots.txt

#373348
  • Resolved Anfuca
    Rank Math free

    Hi, I have a robots.txt file in the root folder of my website and I don’t want to delete it.
    I want to disable the virtual robots.txt that is generated from Rank Math. How can I achieve this?
    All the info I read is about to remove the robots.txt from my root folder, but that is not a solution for us.

    Thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    The virtual robots.txt file is only generated when there is no robtos.txt file present in the root folder.

    If you wish to use the robots.txt file in the root folder, you can add the rules in this file, Rank Math will not generate the virtual file.

    Hope that helps.

    Thank you.

    Anfuca
    Rank Math free

    Hello,

    I have a robots.txt in the root folder and the virtual robots.txt is generated.

    I have updated the sensitive data so you can check it by yourself. Can you please check further?

    Thank you.

    Hello,

    We apologize for the unexpected delays.

    Can you please clear your website cache and check the robots.txt again.

    If the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Anfuca
    Rank Math free

    Hi, thanks for your reply.

    Sorry but this WordPress and FTP are only accesible via an internal VPN.
    I’ve cleared the caché (CloudFlare & Autoptimize) with no lucky.

    WordPress and Rank Math are updated.

    Is there anything else we can do?

    Thanks

    Hello,

    We understand.

    In the URL you shared in the Sensitive Data section. The robots.txt in the primary domain has different content than the URLs with a translation folder (es and en).

    Can you please clear your website cache including any server-level caching software such as Cloudflare?

    See if this updates the robots.txt configuration to all of the URLs you shared.

    Please note that the virtual robots.txt will only generate if our plugin can’t find any physical robots.txt in the root directory of your website.

    You may try to disable Rank Math to see if the issue persists. If so, then this might be a caching issue.

    Looking forward to helping you on this one.

    Anfuca
    Rank Math free

    Hi, there aren’t /es/ and /en/ physical folders. It’s because we’re using WPML plugin.

    So, I’ve cleared CloudFlare’s and Autoptimize cache. Same result. All the robots.txt remain with the same content.

    Also, I’ve disabled Rank Math plugin, and this make a little change:
    The /es/robots.txt and the /en/robots.txt still exists, but without the sitemap’s line.

    It seems to be an unrelated error with your plugin. I’ll keep investigating.

    Thanks for your time

    Hello,

    It seems that you have already marked this ticket as “Resolved”. Can you please confirm if you have sorted it out?

    Please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this ticket.