3

I will have two sitemaps for my website. The first sitemap is the .xml version for the search engines. The second sitemap is a sitemap.php on my website for the users.

I know I can list the sitemap.xml in the robots.txt file as follows:

Sitemap: http://www.example.com/sitemap.xml

Can I list sitemap.php in the robots.txt? Will it be read by the search engines?

Sitemap: http://www.example.com/sitemap.xml
Sitemap: http://www.example.com/sitemap.php

Or would it be best to let Google/Bing etc. find sitemap.php, when and if it gets to the website?

4

Can I list sitemap.php in the robots.txt?

No, that wouldn't work. The XML Sitemap goes in robots.txt. The public-facing site map will be crawled by search engines like any other page.

  • 1
    You can have your sitemap.xml file displayed as HTML though. This can be done using the extensible stylesheet language transformations (XSLT), which is shown here. – ub3rst4r Mar 18 '16 at 15:03
  • @ub3rst4r, I looked up the link, thanks for the info, good to know ;-) – Andy R Mar 20 '16 at 14:09

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.