Mobile app version of vmapp.org
Login or Join
Carla537

: Locate sitemap at HTTP or HTTPS? Our homepage has a 301 redirect from HTTP to HTTPS but all other pages on the site are on HTTP. (1) Should the sitemap be located at HTTPS and is there

@Carla537

Posted in: #Http #Https #Sitemap

Our homepage has a 301 redirect from HTTP to HTTPS but all other pages on the site are on HTTP.

(1) Should the sitemap be located at HTTPS and is there any problem if we:


(2) include the HTTPS version of homepage (not including the HTTP homepage)
(3) include the HTTP of all other pages within the HTTPS sitemap


I have read conflicting information about including both HTTPS and HTTP in the same sitemap so any info is appreciated here.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Carla537

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

A single XML sitemap should not contain a mix of HTTP and HTTPS URLs (i.e. essentially different locations as far as the search engines are concerned). So, the sitemap located at example.com/Sitemap.xml should only contain URLs starting example.com/ and similar for the HTTPS sitemap.

From sitemaps.org:


Q: My site has both "http" and "https" versions of URLs. Do I need to list both?
No. Please list only one version of a URL in your Sitemaps. Including multiple versions of URLs may result in incomplete crawling of your site.


From GWT Sitemap Errors:


URL not allowed
www.example.com/ — it's using a different protocol (https rather than http)


So, you would seem to need 2 sitemaps. One for HTTPS and the other for HTTP. Although if you only have 1 URL in your HTTPS sitemap (your homepage!) then whether you need an HTTPS sitemap at all is debatable - although it could help with reporting in GWT.

To answer your specific questions...


(1) Should the sitemap be located at HTTPS and is there any problem if we:


Well, yes and no. You would need a sitemap at both, but primarily at HTTP.


(2) include the HTTPS version of homepage (not including the HTTP homepage)


Include the HTTPS version of the homepage in the HTTPS sitemap. You state you have a redirect to the HTTPS homepage, so there is no HTTP homepage. So, the HTTP homepage should not appear in any sitemap.


(3) include the HTTP of all other pages within the HTTPS sitemap


No. You would need a separate HTTP sitemap.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme