|
Store Your XML Sitemap Files on a Different Domain |

Wednesday, 21 May 2008
|
The major search engines have announced an update to the sitemaps.org protocol which lets site owners store their XML Sitemap files in any location and even on a different domain than the one referenced in the Sitemap. This is good news for people who manage multiple domains and would like to keep all Sitemap files in one place, as well as for those who would like to store their Sitemap in a location other than the root. But for doing all this you should be able to edit the robots.txt file of the domain the Sitemap file references. Earlier, the Sitemap file had to be stored at the same location as the URLs listed in that Sitemap. For example: http://www.abc.com/sitemap.xml could include: But it could not include: Similarly, http://www.abc.com/folder1/sitemap.xml could
include: And could not include: The earlier protocol required that whoever could modify the Sitemap file also had ownership rights of the URLs listed in the Sitemap. However, this setup proved to be problematic for some sites, including those with multiple domains and sub domains who found it difficult to write Sitemap files to multiple locations. Some sites also found it technically different to write Sitemap files to the root of the domain. With the latest sitemaps.org update: · Each Sitemap file can reference only one domain. · The Sitemap can be placed anywhere (on a different domain or in a subfolder) as long as its location is referenced in the domain's robots.txt file. Referencing the Sitemap File In robots.txt Sitemap: http://www.example1.com/sitemap.xml This line lets the search engines know that you have ownership of www.abc.com (since you can modify the robots.txt file for it) and that the Sitemap for that domain is located at http://www.abcd.com/sitemap.xml. If you want to store Sitemaps for multiple domains in one location, simply create a Sitemap for each domain and then modify the robots.txt for each of them to point at the Sitemap file location. The same above technique also works if you do not want to store your Sitemap at the root. If you want to store the Sitemap at http://www.abc.com/sitemap/sitemap.xml, then simply modify the robots.txt file for www.abc.com with the following: Sitemap: http://www.abc.com/sitemap/sitemap.xml Olive Global is a search engine optimisation company and website promotion company offering innovative and result oriented Internet marketing services in UK. Article Source: http://www.ArticleBlast.com |
| Comments On This Article: |
Only registered users can write comments.
Please login or register.
You are welcome to publish this article free of charge on your website, newsletter, or e-zine, provided:
- You don't change the article in any way
- You include the entire article, including the "about the author" box
- All hyperlinks must remain intact, including email addresses, and the link to ArticleBlast.com at the bottom
- In doing so you agree to indemnify the article's author, and ArticleBlast.com and its directors, officers, employees and agents from and against all losses, claims, damages and liabilities which arise out of its use
- It is also recommended that you provide a courtesy copy of your publication to the author of the article
