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?

1 Answer 1

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.

2
  • 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. Commented Mar 18, 2016 at 15:03
  • @ub3rst4r, I looked up the link, thanks for the info, good to know ;-)
    – Andy R
    Commented Mar 20, 2016 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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