Query on Sitemap xml Root Path
-
- Is it compulsory to have sitemap.xml at this path - abcd.com/sitemap.xml?
My sitename is abcd.com. Now is it compulsory to have sitemap.xml at this path - abcd.com/sitemap.xml only?
a) If i take cnd services where path can be like xyz.com/sitemap.xml and then this sitemap i can submit in robot file so it is fine?
b) What will happen here in webmaster tool as in webmaster tool when we submit sitemap by default it gives us domain name like abcd.com and we have to just add /sitemap.xml
-
Hi Ian,
Thanks for your support!
-
Hi,
What is the main reason for you to upload the sitemap to a new location?
I also found an article on sitemaps that might help. It says: The XML sitemaps protocol defines that XML sitemap files can not contain URLs from different domains. This includes subdomains and other kinds of variations. You have to keep all URLs to a single domain per XML sitemap.
Taken from this site https://www.microsystools.com/products/sitemap-generator/help/multiple-domains-xml-sitemaps/
This includes tutorials on different types of sitemaps.
Hope this can help further.
Thanks,
Ian
-
Hi Ian,
I have a large ecommerce website whose XML site map is currently located at https://www.abcd.com./sitemap.xml , whereas I want to upload it at new location I.e https://data.abcd.com/sitemap.xml it means on new location which is sudomain, Also if it is OK as per Google guidelines to upload your sitemap in sudomain rather than main domain then please let me know that in webmaster console how can I upload this new sitemap? Because when I try to upload sitemap in console it ask mandatorily to upload sitemap to be available at root of the website so what next I can do ? Thanks!
-
Hi,
I Believe it's compulsory for a sitemap to be at abcd.com/sitemap.xml.
Here is a guide on sitemaps and their format for future references: https://www.sitemaps.org/protocol.html
You tend to only have one sitemap, unless you have a large site then you will need divide the sitemaps across different pages, a general rule of thumb is to keep the sitemap below 50,000 URLs. I'd say one sitemap at abcd.com/sitemap.xml should be enough for a standard website.
I'm unsure of Question a) if you could repeat that in more detail please.
Finally, there are two ways to submit a sitemap,
-
Directly within Google Search Console (previously Webmaster Tools) using the 'Test/Add Sitemap' feature, by adding /sitemap.xml and testing it before submitting it.
-
Insert the your sitemap line anywhere in your
robots.txt
file, specifying the path to your sitemap:
Sitemap: http://example.com/sitemap_location.xml
You can also find more information and guidelines on sitemaps here: https://support.google.com/webmasters/answer/156184?hl=en&ref_topic=4581190
Hope that helps.
Ian
-
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
-
Query string parameters always bad for SEO?
I've recently put some query string parameters into links leading to a 'request a quote' form which auto-fill the 'product' field with the name of the product that is on the referring product page. E.g. Red Bicycle product page >>> Link to RFQ form contains '?productname=Red-Bicycle' >>>> form's product field's default value becomes 'Red-Bicycle' I know url parameters can lead to keyword cannibalisation and duplicate content, we use sub-domains for our language changer. BUT for something like this, am I potentially damaging our SEO? Appreciate I've not explained this very well. We're using Kentico by the way, so K# macros are a possibility (I use a simple one to fill the form's Default Field).
Technical SEO | | landport0 -
Localizing URLs Path - Hreflang
Hello, This is a simple question regarding how URLs should be managed for proper results with the hreflang tags. Right now, we have a website in English and German. The hreflang tag is working properly. This is how we currently have it: https://www.memoq.com/ https://de.memoq.com/ But we will soon change the way we localize our web, moving out of the sub-domain structure. There is this possibility of localizing the URLs path, but I was wondering if the hreflang tag would work in such case. The new structure would look something like: https://www.memoq.com/why-memoq https://www.memoq.com/de/warum-memoQ So my question is: If we localize the keyword in the path of the URL, will the tag still work? Or do they need to be in the same language than the English version. Thanks!
Technical SEO | | Kilgray1 -
Sitemap & noindex inconstancy?
Hey Moz Community! On a the CMS in question the sitemap and robots file is locked down. Can't be edited or modified what so ever. If I noindex a page in the But it is still on the xml sitemap... Will it get indexed? Thoughts, comments and experience greatly appreciate and welcome.
Technical SEO | | paul-bold0 -
Effect of temporary subdomains on the root domain
Hi all, A client of ours tends to have a number of offers and competitions during the year and would like to host these competitions on separate sub-domains. Once a competition is over (generally these last for approximately a month) the sub-domain gets deleted and pointed back to the main site. I was wondering whether this would have any effects on the root domain. Can I get your opinion please?
Technical SEO | | ICON_Malta0 -
Adding multi-language sitemaps to robots.txt
I am working on a revamped multi-language site that has moved to Magento. Each language runs off the core coding so there are no sub-directories per language. The developer has created sitemaps which have been uploaded to their respective GWT accounts. They have placed the sitemaps in new directories such as: /sitemap/uk/sitemap.xml /sitemap/de/sitemap.xml I want to add the sitemaps to the robots.txt but can't figure out how to do it. Also should they have placed the sitemaps in a single location with the file identifying each language: /sitemap/uk-sitemap.xml /sitemap/de-sitemap.xml What is the cleanest way of handling these sitemaps and can/should I get them on robots.txt?
Technical SEO | | MickEdwards0 -
Google indexing less url's then containded in my sitemap.xml
My sitemap.xml contains 3821 urls but Google (webmaster tools) indexes only 1544 urls. What may be the cause? There is no technical problem. Why does Google index less URLs then contained in my sitemap.xml?
Technical SEO | | Juist0 -
How do i Organize an XML Sitemap for Google Webmaster Tools?
OK, so i used am xlm sitemap generator tool, xml-sitemaps.com, for Google Webmaster Tools submission. The problem is that the priorities are all out of wack. How on earth do i organize it with 1000's of pages?? Should i be spending hours organizing it?
Technical SEO | | schmeetz0 -
Does google recognize original content when affiliates use xml-feeds of this content
Hi, Concerning the upcoming (We're from the Netherlands) Panda release: -Could the fact that our affiliates use XML-feeds of our content effect our rankings in some way -Is it possible to indicate to google that content is yours? Kind regards, Dennis Overbeek dennis@acsi.eu | ACSI publishing | www.suncamp.nl | www.eurocampings.eu
Technical SEO | | SEO_ACSI0