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 To Avoid Redirect Chains When Switching From http to https
I have been working on on-page SEO which has involved switching from http to https, and renaming URLs. I am running in to issues with redirect chains. Here is a scenario: Old URL: http://bwisecontractors.ca/products/decks-and-deck-covers/ New URL: https://bwisecontractors.ca/renos-additions/sunrooms-patio-covers/ Since I already created the redirect addressing the redirecting from http to https for the root domain: (http://bwisecontractors.ca to https://bwisecontractors.ca), should the redirect for the above be http://bwisecontractors.ca/products/decks-and-deck-covers/ to https://bwisecontractors.ca/renos-additions/sunrooms-patio-covers/ , or should it be http://bwisecontractors.ca/products/decks-and-deck-covers/ to http://bwisecontractors.ca/renos-additions/sunrooms-patio-covers/ (and the root domain redirect will take care of going from http to https)
On-Page Optimization | | BWiseContractors0 -
Looking for an e-commerce CMS that can deal properly with facets and filters
Hi! One of my clients has an online shop built on a custom platform. Following my on-page audit, I found multiple issues with the faceted & filtered navigation. After doing some research, I've developed a good site architecture based both on keyword targeting and on user experience. Since the client's platform is custom and he is no longer in contact with the original webmaster, I'm looking to recommend an e-commerce CMS that would fix the issues he has and allow for proper navigation using facets + filters. I'll give you an idea of how I've envisioned the new site architecture (with a random example): The website has 3 main categories: Jackets Shoes Pants These categories are completely separated, no products exist in more than one category. Let's take the Shoes category. It has the following facets (these are like subcategories, in the form of links, indexable by the search engines): By Brand: Brand 1 Brand 2 Brand 3 By Genre Men Women Unisex By Type Running Flip-Flops Boots Each product of the Shoes category will belong to one of each facets (so you can have a product that belongs to Brand 1, for Women, of the "boots" type). Now, each of these facets also display filters depending on the facet itself. These are non-indexable, and preferably done through AJAX. For example, if I select Shoes -> Men I get a list of filters that can also include options from the other facets (so I'll have filters for "Size", but also for "Brand" and "Type"). When I select Shoes -> Boots I won't have the "Type" filter anymore (or I can have it pre-selected I guess), but I will have the "Size" and "Brand" filters. So, what I am looking for is for a CMS that can allow product attributes (like "Type", "Genre" or "Brand") to be used both as facet categories as well as filters. The closest live example I could find is ASOS, where you can search products by Brand (facet) and have the refined afterwards by Type (filter) or you can search products by Type (facet) and refine them by Brand (filter). So, any idea of an e-commerce CMS that would allow me to do the above (bonus points if it also allows entering descriptions for facets, similar to what ASOS does)? Thanks!
On-Page Optimization | | mihaiaperghis0 -
Do https sites rank as well as http sites?
2 Questions: Question 1 - We currently have our entire site running on https (the http pages 301-redirect to the https versions). Assuming that the https pages load as quickly as the http versions, is it a problem that the entire site is https? The only official answer I've been able to find is this 2011 video where Matt Cutts basically says "I don't know" - http://www.youtube.com/watch?v=xeFo4ytOk8M Question 2 - Is there any problem with having half our site running on https only (with the http pages redirected), and the other half (our blog) running on http only (with all https blog pages redirected to the http versions)? Thanks in advance for any input! Justin
On-Page Optimization | | JustinClark0 -
Losing Page Rank after 301 redirect from http to www
Hi Guys I have site-wide redirected all http// to www and all the category pages lost their page ranks (except home page). I would like to know if this is normal and is it one of the possible causes in losing keyword ranking?
On-Page Optimization | | ilovebodykits0 -
Can we listed URL on Website sitemap page which are blocked by Robots.txt
Hi, I need your help here. I have a website, and few pages are created for country specific. (www.example.com/uk). I have blocked many country specific pages from Robots.txt file. It is advisable to listed those urls (blocked by robots.txt) on my website sitemap. (html sitemap page) I really appreciate your help. Thanks, Nilay
On-Page Optimization | | Internet-Marketing-Profs0 -
Google indexing https insted of http pages
Hi!
On-Page Optimization | | ovieira
First of all i have a Wordpress portuguese languagem website (**http://**bit.ly/TGjpVx). For a while, for security pourposes, i had a SSL certificate installed on my website but i didn't renew it, for a few months now. I didn't have any special https page. All pages responded using http or https. My problem is that it seems that Google still indexes some o my webpages with https and not http, so when people click on it they get a bad cached page. No good for SEO, i think. What can i do about this? I only want Google, and other serach engines, to index my clean http pages (about 70 pages). Thanks,
OV0 -
On-Page Report Card with https
Hi, Our site has a 301 redirect to https and I'm getting two different grades for my pages depending upon whether I type: https://www.domain.com (gets an A grade) or www.domain.com (gets a C grade) Is there a setting I need to use to make sure my campaign knows our site is at https? Thank you 🙂
On-Page Optimization | | GroundSix0 -
Can bad text URLs hurt pages?
If you have some pages that contain plain text URLs (not anchored links) that used to be good URLs, but are now bad, either because the website shut down or because it has been acquired by someone else and is now parked (or worse) - are those URLs enough to cause quality problems? For example: This information was brought to you by Waymaker http://www.waymaker.net These aren't the only ones. And yes, I know I should fix them, but there are probably 10,000 pages like it. I will fix them, but its not something I can do in a few minutes. (this one is easy to fix programmatically, but others are a lot more complex) So my question is: do you have actual experience that these are bad enough to cause ranking problems (making them low quality)
On-Page Optimization | | loopyal0