Can you reference http and https in a sitemap.xml?
-
I have a site where some pages (in Spanish) are https. The english pages are http. Can you tell me if it's okay to have both in the sitemap.xml?
-
After reading some Google documentation I set it up like this:
<url><loc>http://www.mexpro.com/</loc>
<lastmod>2014-08-25T21:02:47+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>1.00</priority>
<xhtml:link <br="">rel="alternate"
hreflang="es-mx"
href="https://www.mexpro.com/mx/"
/>
<xhtml:link <br="">rel="alternate"
hreflang="en"
href="http://www.mexpro.com/"
/>
<xhtml:link <br="">rel="canonical"
href="http://www.mexpro.com/mexico/"
/></xhtml:link></xhtml:link></xhtml:link></url>Do I need rel="alternate" and rel="canonical" for the sitemap, or is it better to do a traditional sitemap for English and Spanish?Thank you.
-
I think you can, I always would make it two different sitemaps though to also have the data for the specific languages.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How can i fix the canonical tag issue?
I was experiencing today morning some issue on our website page. While I inspected the URL to Google for the page https://www.socprollect-mea.com/dubai-free-zone-company-formation/ I noted the issue. The canonical tag is showing errors only the source code showsThis is a serious issue right?Does anyone have the idea to solve this concern? Please help me to sort it out the issue and guide me on how to fix this WordPress issue.
On-Page Optimization | | nazfazy0 -
How can I redirect anything after the article url to main article?
Hello everyone, When someone visits my websites article like http://www.website.com/article-title/lol , it give to 404 page error. But when someone http://www.website.com/article-title/ , it shows the article. The word "lol" can be changed to anything. I would like that to be redirected to the main article. Example: Someone visits website.com/article-title/lol, they should be redirected to website.com/article-title/ Is it possible to do so? If yes, please tell me how. Note: I'm using WordPress Thank you
On-Page Optimization | | hakhan2011 -
Webmaster sitemap how to tell Google to recheck and no of times to check a day?
Webmaster sitemap how to tell Google to recheck and no of times to check a day? But how often google check if the sitemap version changed and how to notify google about the change happened
On-Page Optimization | | bsharath0 -
Can Robots.txt on Root Domain override a Robots.txt on a Sub Domain?
We currently have beta sites on sub-domains of our own domain. We have had issues where people forget to change the Robots.txt and these non-relevant beta sites get indexed by search engines (nightmare). We are going to move all of these beta sites to a new domain that we disallow all in the root of the domain. If we put fully configured Robots.txt on these sub-domains (that are ready to go live and open for crawling by the search engines) is there a way for the Robots.txt in the root domain to override the Robots.txt in these sub-domains? Apologies if this is unclear. I know we can handle this relatively easy by changing the Robots.txt in the sub-domain on going live but due to a few instances where people have forgotten I want to reduce the chance of human error! Cheers, Dave.
On-Page Optimization | | davelane.verve0 -
HTTP to HTTPS
I had a site that was http://www.site.com and now the entire site is https://www.site.com. I notice in WMT its showing https://wwwsite.com listed as not verified. I never added it, but did Google recognize it and added it to my list of sites? Do I need to verify it? Is it ok to have verified http:www.site.com and additionally https://www.site.com Also, i submitted a new sitemap and indexed pages are low. Will that go up as Google crawls the site? The https://www.site.com was launched about a week ago. Thanks.
On-Page Optimization | | Kdruckenbrod0 -
Yoast Sitemap Best Practices
I'm using the Yoast SEO plugin and I've never really known the correct answer to this question or which factors you should consider when choosing, but can someone give me some advice on which post types and taxonomies to exclude when generating the sitemap using this plugin. I know this is probably unique to each site, but can someone share what criteria they weigh when choosing which ones to exclude for their own site?
On-Page Optimization | | atstickel120 -
Can internal duplicate content cause issues?
Hello all mozzers - has anyone used nitrosell? we use them only because their inventory connects to ours epos point but because they have thousands of 301s on our domain we are getting duplicate content because different sizes of products (we sell womenswear) are creating seperate URLS so we are duplicating both content and URLS - im curious as to whether anyone has experienced simillar problems that have affected their SERPS? Best wishes, Chris
On-Page Optimization | | DaWillow1 -
Https and secure pages
Hello, I have a facebook badge in my footer. Is it okay if I make the code call on https. It makes the page secure for IE. I have also have done this for images. These secure urls are also being called on non secure pages. But I don't think that matters does it? Code below. Thanks Tyler
On-Page Optimization | | tylerfraser0