Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support devnihil

    (@devnihil)

    @slservice33 We’re sorry to hear you are experiencing this issue on your site.

    We checked on the sitemap using the HTTP version and do see that the sitemap is showing a blank page in the browser. However, we viewed the source code of the sitemap as well and despite the page showing blank, we can see that the sitemap code is successfuly generated (see image here) so there is no issue with Google being able to crawl the sitemap. In addition, we checked the URL in a sitemap validator here to confirm this.

    A blank sitemap is typically an issue with the stylesheet, a static file or a conflict in your setup. To resolve this, we would recommend for you to lease check the following:

      1. Check whether the source of the sitemap shows you the data you would expect in an XML sitemap. Not sure how to see the source code, follow the steps in this help?article.
      2. If you have a cache plugin or server side cache, please flush the cache. If the issue remains, please disable and re-enable the sitemap feature (steps here) to force a cache reset.?If you are not sure how to clear caching from theme/plugin please speak to those authors. If you want to clear cache from the server, please speak to your host provider. To clear the cache from a browser use this guide.
      3. Our plugins create sitemaps on the fly. Using FTP or a file manager, please ensure there is not a physical file called sitemap_index.xml at the root of your WordPress installation. If there is, please rename or remove the static file.
      4. Check that the XSL file, linked in the very top of the XML file, is available.?Sometimes this file gets blocked by?.htaccess?prevention of the?wp-content?directory. You can learn more here:?Sitemap Stylesheet
      5. Open the sitemap and the sitemap stylesheet in Firefox to see if any errors display. If an error displays, please read this?article?about common sitemap errors.
      6. Yoast SEO uses the WordPress site URLs to generate the sitemap. In rare cases, these URLs may not match the preferred URL format of your site. Go to Admin > Settings > General and make sure the correct?Site Address and WordPress address match the sitemap URL you are trying to view.
    Thread Starter slservice33

    (@slservice33)

    firefox gives the error

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

    for https://www.slservice.net/sitemap_index.xml

    I dont know why http gives stylesheet error when https does not ?

    Thank you ??

    Thread Starter slservice33

    (@slservice33)

    Also thanks for the all the information you have provided.

    I cant view the source at all so its good to know that the page is working just not displaying for some reason

    Plugin Support devnihil

    (@devnihil)

    @slservice33 We aren’t able to say for sure why the server isn’t able to serve the stylesheet for the HTTP version but when this it occurs it’s typically due to either getting blocked by .htaccess prevention of the wp-content directory, or that in some way the server is denying the request based off it’s own security settings.

    Thread Starter slservice33

    (@slservice33)

    Hi thanks again.

    Alessandro at Hostinger (my server company) found the error in my htacces file

    “I saw that there was an error with CORS policy in your website, that was showing on Google Console.”

    Updating the .htaccess file of your website with:
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin “*”
    </IfModule>
    Fixed the CORS Policy error.`

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hello,

    This thread has been marked as resolved as the original poster confirmed the issue as resolved on their site.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No Sitemap on http – works on https’ is closed to new replies.