Sitemap Could not fetch error

#577985
  • Resolved Ali Husnain
    Rank Math free

    Hi,
    I tried everything to submit my sitemap to search console but still i am not able to submit it as it always shows the could not fetch error. could you please help me to sort that out

Viewing 15 replies - 1 through 15 (of 22 total)
  • Hello,

    Thank you for contacting Rank Math support. I’m sorry to hear that you are having trouble submitting your sitemap to Google Search Console.

    There are a few possible reasons why you might be getting this error. Can you please share the URL of the sitemap in question with me? I’d love to help troubleshoot this error. Also, have you read and followed this guide: https://rankmath.com/kb/couldnt-fetch-error-google-search-console/. If not, it’s a good place to start.

    Looking forward to helping you troubleshoot this issue

    Hello,

    Sitemap and robots.txt file looks good and I ran the test on XML validator and there was no error in the sitemap. Even robots.txt file looks fine.

    Would you please share the screenshot from the Google Search Console about the error. In the meantime, would you please confirm did you follow the steps as mentioned here : https://rankmath.com/kb/couldnt-fetch-error-google-search-console/

    Also, I would suggest deleting the current sitemap and adding ?sitemap=1 in the GSC to see if that resolves the issue.

    Looking forward to helping you.

    Thank you

    https://ibb.co/3RdSLkW

    here is the error . it shows always the same whenever i tried to submit the sitemap

    Hello again,

    Thanks for sharing more details with us.

    It seems like the issue is with the sitemap URL that you are trying to submit to Google. Your sitemap is not in the right place – it should be in the root of your domain, not in the index.php folder. The correct sitemap URL for your site should be https://accuratewriter.com/sitemap_index.xml, not https://accuratewriter.com/index.php/sitemap_index.xml.

    To fix this, you need to add some code to your .htaccess file. You can edit this file by navigating to Rank Math > General Settings > Edit .htaccess. Just copy and paste this code, preferably at the beginning of the file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    This code will redirect your sitemap to the correct location. After you save the file, clear your site cache and check if https://accuratewriter.com/sitemap_index.xml works. If it does, you can submit this sitemap to Google without any errors. If it doesn’t, you may need to add another piece of code to your .htaccess file:

    <IfModule mod_security.c>
    SecFilterEngine Off
    </IfModule>

    This code will disable a security module that may be blocking the rewrite. Try again and see if it works. If not, please let me know and I’ll be happy to help you further.

    I hope this helps. Have a great day!

    I put the first code and it still shows the same sitemap. but could you please tell me where to paste the second code?

    Hello,

    The second code should go in the same file.

    That said, to help you resolve this issue, we might need to take a closer look at your website and settings. Please follow these steps:

    • Edit the first post on this ticket and include your WordPress and FTP logins in the Sensitive Data section. This is a secure section that only our support staff can access.
      Sensitive Data Section
    • Make sure you take a complete backup of your website before sharing the information with us.
    • If you prefer, you can use this 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 also use this plugin to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/

    We appreciate your cooperation and patience. Thank you for choosing Rank Math.

    Hello,

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

    Thank you.

    Hello,

    We would require FTP as well as we’ll be editing .htaccess file. Using File manager, we can directly edit / modify the code accordingly.

    Also, in the meantime would you please try submitting index.php/sitemap_index.xml in the GSC sitemap and see if that resolves the issue.

    Looking forward to helping you.

    Thank you

    I submitted again the sitemap but still its showing the same error ” Could not fetch” before i used the yoast seo tool and there were no problem with the sitemap and GSC took it very quickly but in Rankmath still problem. please help me to sort this out or otherwise I’ll have to install the yoast seo again which i personally not comfortable with

    Hello,

    I appreciate your prompt reply and I’m sorry to hear that you’re still having this trouble.

    In order to fix this issue, we need to access some files on your WordPress configuration that are not accessible through the admin panel. For this, we need your FTP login details.

    If you don’t know your FTP login details, you can contact your hosting provider and ask them to provide it to you.

    Thank you for your cooperation and understanding.

    Best regards,

    Hello,

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

    Thank you.

    Is there any update?

    Hello,

    I’m sorry this has been a hassle. But to be able to help we’ll need your wp-admin login AND your FTP login, not one or the other. It looks like you have removed our access to your wp-admin – can you please provide a wp-admin login details in addition to the FTP details you’ve already provided?

    In the meantime, please submit the following sitemap to Google: https://accuratewriter.com/?sitemap=1.

    Cheers

    this https://accuratewriter.com/?sitemap=1 i submitted and it success but the other one is still not fetch

Viewing 15 replies - 1 through 15 (of 22 total)

The ticket ‘Sitemap Could not fetch error’ is closed to new replies.