On my webroot, I have a file, say, foo.php
that outputs a valid XML Sitemap. In robots.txt, I have something like:
Sitemap: http://SomeDomain.com/foo.php
Will the sitemap be found by Google, etc.?
On my webroot, I have a file, say, foo.php
that outputs a valid XML Sitemap. In robots.txt, I have something like:
Sitemap: http://SomeDomain.com/foo.php
Will the sitemap be found by Google, etc.?
A .xml extension is not required, it can even be a GET parameter triggering the sitemap.
See http://www.sitemaps.org/: No specification for a particular file extension.
Sitemap:
directive in the robots.txt
file, so it's reasonable to assume that Google will find it. Reference: developers.google.com/webmasters/control-crawl-index/docs/…
– MrWhite
Aug 28 '16 at 23:43
robots.txt
? (However, you would need to submit it via GSC if you want GSC to report on it. But just because GSC doesn't report on it, doesn't mean it's not found it.) – MrWhite Aug 27 '16 at 15:16