Google accepts a sitemap as .txt file with a list of URLs separated each by a newline.

Would Google also allow the same text file format with a .php? Ie.mysitemap.php instead of mysitemap.txt?

1 Answer 1


If your sitemap is being submitted in txt format, then it must have a .txt file extension.


Google instructions on txt sitemaps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.