Title: No Sitemap on http &#8211; works on https
Last modified: April 26, 2021

---

# No Sitemap on http – works on https

 *  Resolved [slservice33](https://wordpress.org/support/users/slservice33/)
 * (@slservice33)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/no-sitemap-on-http-works-on-https/)
 * my sitemap for https works fine but for http nothing loads
 * [http://www.slservice.net/sitemap_index.xml](http://www.slservice.net/sitemap_index.xml)–
   nothing
    httsp://www.slservice.net/sitemap_index.xml – good !
 * Any help much appreciated
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fno-sitemap-on-http-works-on-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/no-sitemap-on-http-works-on-https/#post-14366488)
 * [@slservice33](https://wordpress.org/support/users/slservice33/) We’re sorry 
   to hear you are experiencing this issue on your site.
 * We checked on [the sitemap](http://www.slservice.net/sitemap_index.xml) using
   the HTTP version and do see that the sitemap is showing a blank page in the browser.
   However, we [viewed the source code](https://yoast.com/help/view-page-source-site/)
   of the sitemap as well and despite the page showing blank, we can see that the
   sitemap code is successfuly generated ([see image here)](https://pasteboard.co/JZ8mmq6.png)
   so there is no issue with Google being able to crawl the sitemap. In addition,
   we checked the URL in a sitemap validator [here](https://www.xml-sitemaps.com/validate-xml-sitemap.html?op=validate-xml-sitemap&go=1&sitemapurl=http%3A%2F%2Fwww.slservice.net%2Fsitemap_index.xml&submit=Validate+Sitemap)
   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](https://yoa.st/3wn).
       **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](https://yoa.st/3wo))
      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](https://yoa.st/3ve). **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](https://yoa.st/3wq) **5. **Open
      the sitemap and the sitemap stylesheet in Firefox to see if any errors display.
      If an error displays, please read [this article](https://yoa.st/3wp) 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](https://wordpress.org/support/users/slservice33/)
 * (@slservice33)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/no-sitemap-on-http-works-on-https/#post-14367334)
 * firefox gives the error
 * Error loading stylesheet: An unknown error has occurred (805303f4)
 * for [http://www.slservice.net/sitemap_index.xml](http://www.slservice.net/sitemap_index.xml)
 * I dont know why http gives stylesheet error when https does not ?
 * Thank you 👍
 *  Thread Starter [slservice33](https://wordpress.org/support/users/slservice33/)
 * (@slservice33)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/no-sitemap-on-http-works-on-https/#post-14367338)
 * 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
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/no-sitemap-on-http-works-on-https/#post-14367667)
 * [@slservice33](https://wordpress.org/support/users/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](https://wordpress.org/support/users/slservice33/)
 * (@slservice33)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/no-sitemap-on-http-works-on-https/#post-14367720)
 * 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](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/no-sitemap-on-http-works-on-https/#post-14368030)
 * 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.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [sitemap](https://wordpress.org/support/topic-tag/sitemap/)

 * 6 replies
 * 3 participants
 * Last reply from: [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/no-sitemap-on-http-works-on-https/#post-14368030)
 * Status: resolved