sitemap html

#454915
  • Resolved Karina Tanos
    Rank Math free

    Hi rankmath,

    For some reason our site is not being indexed according to Google search console. It definitely was maybe a month or 2 back.

    I thought the issue might be this which I found on Rank Math in our site :
    “Since you are using an NGINX server, you may need to add the following code to your configuration file if your Sitemap pages are not loading. If you are unsure how to do it, please contact your hosting provider. Click here to see the code.”

    This is the code:
    # START Nginx Rewrites for Rank Math Sitemaps
    rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
    rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
    # END Nginx Rewrites for Rank Math Sitemaps

    But our host tried to install the nginx rules set for Rankmath SEO as mentioned here:
    https://rankmath.com/kb/xml-sitemaps-nginx/

    The current error is since the sitemap is still not visible at :
    https://dapperconfidential.com/sitemap_index.xml

    and they are viewing this error on the logs:

    [26-Sep-2022 06:07:20 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/nginx/domains/dapperconfidential.com/public/wp-content/themes/mediavine-trellis/inc/classes/class-images.php:717) in /home/nginx/domains/dapperconfidential.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php on line 65

    This seems to be failing to load the .xsl file from rankmath.
    Can you please check this.

    Also – yesterday the sitemap seemed to be showing up as html. Today it looks like it corrected but now we have 4 post sitemaps.

    Can you please help.

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

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

    There has been a stylesheet error in your sitemap. Please check if there are other plugins or your currently active theme that might be causing the issue. To determine that, please check this guide: https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Let us know how that goes. Looking forward to helping you.

    Thanks but I can’t seem to activate Rankmath in the Troubleshooting mode without getting this error msg:
    When enabling the plugin, seo-by-rank-math, a site failure occurred. Because of this the change was automatically reverted. Enable anyway

    So what I did was Enable Anyway.

    Here are some results:
    1. Only the Twenty Twenty theme with no plugins activated – adding the URL dapperconfidential.com/sitemap_index.xml into search bar – What comes up is what resembles a webpage.

    2. With Twenty Twenty theme and Rankmath activated – adding the URL dapperconfidential.com/sitemap_index.xml into search bar – What comes up is the blue & white page that states: “XML Sitemap
    This XML Sitemap is generated by Rank Math WordPress SEO Plugin. It is what search engines like Google use to crawl and re-crawl posts/pages/products/images/archives on your website.” + a list of sitemaps.

    What is the conclusion here please.

    Thanks

    Hello,

    I’ve checked the URL you’ve shared with us and indeed there’s a error preventing your sitemap to load properly:

    Error loading stylesheet: An unknown error has occurred (805303f4)

    The error is possibly occurring because, all of your 4 sitemap URL variations doesn’t redirect to a final variation as you can see in my screenshot I’ve shared below:

    Here the WWW version of your sitemap URL is loading and working perfectly fine.

    Please follow this guide and redirect to a final variation:
    https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#num-5-4-redirect-all-three-other-versions-to-your-preferred-variation

    Once done, clear your website cache and try submitting your sitemap to your Google Search Console again. See if this resolves the issue.

    Looking forward to helping you.

    Thank you.

    ​​​​​​​

    Hi there,

    I’ve been able to have Google Search Console recognise the sitemaps but it still isn’t indexing our site. It says the error is a Redirect Error. Are you able to help?

    Thanks

    It’s ok I think the issue is resolved. Thank you

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.