Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitemap files on different domains

Tags:

seo

sitemap

I am creating multiple sitemap files for my website. The issue is that my sitemap files are located on a different file server from my website. For example, I have a website by domain, www.example.com, however my sitemap index file and the other sitemap files reside on www.filestack.com.

My sitemap index file will look like:

<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84">
<sitemap>
<loc>
https://www.filestack.com/sitemap1.xml
</loc>
</sitemap>

Though my sitemap1.xml will be:

<url>
<loc>
https://www.example.com/test
</loc>
<lastmod>2017-09-04</lastmod>
<changefreq>weekly</changefreq>
</url>

Is it possible to add links to do such a thing and how?

like image 302
Naufal Khalid Avatar asked Mar 08 '23 02:03

Naufal Khalid


1 Answers

See Sitemaps & Cross Submits.

You have to provide a robots.txt at https://www.example.com/robots.txt which links to the external sitemap:

Sitemap: https://www.filestack.com/sitemap1.xml

(This sitemap may only contain URLs from https://www.example.com/.)

like image 97
unor Avatar answered Mar 19 '23 17:03

unor