3

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?

2

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

https://support.google.com/webmasters/answer/183668?hl=en

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.