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
-
Embedded twitter post is good for https://www.fitness-china.com/hip-thrust-machine seo
We have short video posts on twitter. Embedded twitter post is good for https://www.fitness-china.com/hip-thrust-machine SEO?
On-Page Optimization | | ahislop5740 -
Https://www.fitness-china.com/pilates-equipment How to find the most relevant internal link pages
https://www.fitness-china.com/pilates-equipment How to find the most relevant internal link pages? site this page, find https://www.fitness-china.com/pilates-equipment-kr and https://www.fitness-china.com/pilates-equipment-jp Is there any other better way
On-Page Optimization | | ahislop5740 -
406 http error
Hi I am getting about 10 of these errors and when I click on the link it goes to make login wordpress page can anyone help 406 : Received 406 (Not Acceptable) error response for page http://reseolve.com/wp-login.php?redirect_to=http%3A%2F%2Freseolve.com%2Frecent-posts%2F
On-Page Optimization | | ReSEOlve0 -
How updating a post can influence seo
I have just read this great post from moz blog: http://moz.com/blog/google-fresh-factor But I haven't found nothing about updating post date. If I edit an old great post (now ranked 2nd after several months in 1st serp position) does it be better if I also update the date of the post in the wordpress post edit page? Thank you very much and sorry for my poor english. Bye, Dario.
On-Page Optimization | | Italianseolover0 -
How many Anchor text i can make on One page.
I would like to have clear answer in numbers i.e. 1, 2, 3, or 4 etc. of how many Anchor text i can make on One page.????
On-Page Optimization | | 1akal0 -
Wordpress sitemap url problem causing WMT errors
The following types of links are appearing in my webmaster tools crawl errors report under 'other'. I've noticed they are in my sitemaps ( I run wordpress and use a plugin called Google XML sitemaps). How do I get rid of this error? http://www.musicliveuk.com/bands/postname%/
On-Page Optimization | | SamCUK0 -
Can a page lose ranking because it has too many bold tags?
I run a product search website for the Engineering Sector. Each of the companies listed on the website has a profile page. This page used to rank very well in google. Over the last couple of weeks these pages disappeared for google i.e they fell about 20 to 30 spots in the search results for relevant keywords like the Manufacturer Name. I was trying to analyze the page and found that Each of the Categories that the manufacturer supports was listed in "bold" and linked to the page for that category. A manufacturer can support up to 20 or 30 categories so this results in about 20 or 30 Bold keywords. Is this a bad practice? Could this be a reason for a drop in ranking or do bold keywords on a page not matter? What are your views?
On-Page Optimization | | raghavkapur0 -
Video Sitemap Generator
Do you have a favorite tool for generating video sitemaps? Best,
On-Page Optimization | | ChristopherGlaeser
Christopher0