help with sitemap.xml

Kracov

Member
Jan 26, 2006
52
0
66
kracov.org
so, sitemap index and sitemap in the root, right?

and then in the folder of "other.site.com" i put in sitemap2.xml, right?
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
I think your issue is that you have two domains pointed to the same folder?

http://site.com/sitemap.xml will point to something like home/public_html/site.com/sitemap.xml

and

http://subdomain.site.com/sitemap.xml will point to something like home/public_html/subdomain.site.com/sitemap.xml

The reason is that google regards them as a different websites. If you want them to be the same then you should look at 301 redirects or web forwarding to transfer to the site you deem your primary url. However, if you want to get around this you can by pointing to different sitemaps using the robot.txt and giving the googlebot a hint:

Sitemap: http://site.com/sitemap1.xml
Sitemap: http://subdomain.site.com/sitemap2.xml