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
-
Can I put the company name in the image alt text instead of just the service type im trying to rank for?
Hello, if I am trying to rank for a service type and the exact phrase is in the companies name, can I put the company name in the image alt text instead of just the service type? Seizing the opportunity to get another mention of the businesses name...two birds with the one stone if you will... For example, "lawn cutting" being the service type but the company's name is Paul's lawn cutting. Could i put Pauls Lawn Cutting in the image alt text, or just stick to lawn cutting? Thanks in advance
On-Page Optimization | | Gavinn0 -
Can we rank website without main keywords on its homepage?
For example my company website on Google Search Engine... Web Design Company & Digital Agency in Jakarta
On-Page Optimization | | Japracool
coriate.com/
Coriate is a website design & Internet marketing firm in Indonesia. We offer the best web solutions, digital advertising, and SEO Services in the industry. Can I do backlink to it, but different keywords? Like Social Media Management or Facebook Like?0 -
Video Sitemap Error
Hi I am using a Video snippet and this error was generated about the duration tag. Can someone tell me how to fix it? and will this error prevent snippet to work on the sear results? Thanks Mozzers! 1rC5q7g.png
On-Page Optimization | | Ideas-Money-Art0 -
Can I use the same text in my meta description as I put in my post excerpt?
Hi, I'm just trying to understand the right way to optimise my blog posts and this is likely a dumb question... but to what extent should the text in my meta description differ from the text in my post excerpts? cheers, Andrew
On-Page Optimization | | seowhiskey0 -
Wordpress duplicate titles - can't find original title tags
I added new code to rewrite the page titles <title><?php wp_title(''); ?></title> But I can't find the normal title tags in the Header PHP file in editor so I now have duplicate titles tags in the source code This is the code - can't see what else would be titles? This is the website ... http://apexgenerators.co.uk/ <title><?php wp_title(''); ?></title> eFavIcon(); ?> eCSS(); ?> enabled('Theme')) { ?> http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic" />
On-Page Optimization | | lauratagdigital0 -
Can you recommend a few resources for Yahoo SEO
We get very little traffic from Yahoo Search and it seems only 15%-20% of our pages are indexed by Yahoo and Bing although we do submit sitemaps to both of them. Do you have some tips or resources (articles, blogs, books) you could recommend for Yahoo Search optimization?
On-Page Optimization | | AEM130 -
Can duplicate content issues be solved with a noindex robot metatag?
Hi all I have a number of duplicate content issues arising from a recent crawl diagnostics report. Would using a robots meta tag (like below) on the pages I don't necessarily mind not being indexed be an effective way to solve the problem? Thanks for any / all replies
On-Page Optimization | | joeprice0 -
How can we get Google to offer postcard verification for our Place Page?
Most of the time, when we claim a Google Place Page, they give 2 choices to verify ownership: 1) phone verification and 2) postcard verification. But right now (and for several weeks), for our listing, they are only giving the phone verification choice, which unfortunately won't work with our automated phone system. How can we get our Place Page listing verified through a postcard sent to our address, when Google isn't presenting that as an option?
On-Page Optimization | | DenisL0