Sitemap empty and url break

#64445
  • Hi, I’m having trouble with sitemaps.

    The sitemap index can be reached at /sitemap_index.xml but each of the sitemap links in the index returns 404. However, I manage to obtain pages by passing a request ?xsl=

    on the other hand these sitesmaps seem empty, I have this message in browser:

    “This XML file does not appear to have any style information associated with it. The document tree is shown below.”

    I use however in the htaccess a piece of code provided by your support on another ticket:

    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]

    I encounter the same difficulty with robots.txt, it is not accessible from /robots.txt but the page remains reachable from ?robots=1

    I try to force rewrite with this rule, but to no avail.

    RewriteRule ^robots.txt$ /index.php?robots=1 [L]

    Would you have a solution to these problems?
    Thanks in advance

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

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
    ​​​​​​​
    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    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.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Alberto
    Rank Math business

    Hello,

    I have just checked it but it seems your sitemaps are now working. Could you check it?

    Looking forward to help you.

    Hello,

    Your sitemap is loading fine from my end, except for the category sitemap(check sitemap screencast in the sensitive section). The category sitemap is showing a 404 because the one category page that you have is marked as Noindex(check category screencast).

    You seem to have edited the robots.txt in Rank math > General settings > Robots with an incomplete text, user-agent*, which I cleared to allow Rank math to generate the file automatically, saved the settings and now yourdomain/robots.txt is working fine.

    Hope that helps. If you have any further question(s), please let us know. Thank you.

    Thanks for the help Michael Davis, I’m fine too, all is well.
    have a good day

    Is there a solution to remove the xml category sitemap from the sitemap index?

    Hello,

    Just head over to Rank math > Sitemap > Categories and disable the sitemap.

    Hope that helps. If you have any further question(s), please let us know. 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 7 replies - 1 through 7 (of 7 total)

The ticket ‘Sitemap empty and url break’ is closed to new replies.