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
mysitemap.php instead of
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.Sign up to join this community
If your sitemap is being submitted in txt format, then it must have a .txt file extension.