Forum Moderators: open
Actually, My site is in subdomain... URL like http://mysite.example.com/.
So i have created my sitemap files on
http://mysite.example.com/sitemap1.xml
http://mysite.example.com/sitemap2.xml etc...
Also i have created the sitemap_index.xml files on
http://www.example.com/sitemap_index.xml
The sitemap_index.xml contains
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://mysite.example.com/sitemap1.xml</loc>
</sitemap>
<sitemap>
<loc>http://mysite.example.com/sitemap2.xml</loc>
</sitemap>
etc........
</sitemapindex>
Please tell me whether the file creations is correct or not....
[edited by: encyclo at 3:54 am (utc) on Feb. 17, 2007]
[edit reason] switched to example.com [/edit]
From sitemaps.org:
All URLs listed in the Sitemap must reside on the same host as the Sitemap. For instance, if the Sitemap is located at http*//www.example.com/sitemap.xml, it can't include URLs from http*//subdomain.example.com. If the Sitemap is located at http*//www.example.com/myfolder/sitemap.xml, it can't include URLs from http://www.example.com.
On the assumption that sitemap indexes are treated similarly to sitemaps, I'd place each index at the root level of it's own site. Then each index can cover all pages under the root.
You can also validate your sitemaps, which given your example and the number of pages you want to have indexed, is probably a very good idea. ;-)
The sitemap_index.xml contains
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://mysite.example.com/sitemap1.xml</loc>
</sitemap>
<sitemap>
<loc>http://mysite.example.com/sitemap2.xml</loc>
</sitemap>
etc........
</sitemapindex>
Also sitemap1, sitemap2.... are in
http*//mysite.example.com/
Please tell me whether the file creations is correct or not....
Thanks...
[edited by: caveman at 7:00 am (utc) on Mar. 6, 2007]