html - If robots.txt points to a sitemap in a sub-folder, can the sitemap specify URLs in the root? -


suppose have robots.txt file in root, http://domain.com/robots.txt, specifies sitemap in sub-folder has single declaration points sitemap index:

robots.txt

sitemap: http://domain.com/sub/sitemap_index.xml 

suppose sitemap index points sitemap.xml same sub-directory:

sitemap_index.xml

 <?xml version="1.0" encoding="utf-8"?>  <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">     <sitemap>        <loc>http://domain.com/sub/sitemap-1.xml</loc>     </sitemap>  </sitemapindex> 

in sitemap specification, states sitemap can specifies urls in current folder or sub-folders. however, change in scenario described above? reason ask know robots.txt file can point sitemap hosted on different domain. if possible, stands reason sitemap in subfolder, pointed robots.txt in root, can specify urls in root , sub-folders there.

anyone know certain?

yes change in scenario mentioned above. in above scenario robot.txt can point same domain url's directory either sub or main.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -