function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Naveed MakhaniNaveed Makhani 

Google can't index my public KB.

I have a similar issue to the one described in this thread:https://developer.salesforce.com/forums?id=906F0000000AeNFIA0

Google finds the correct robots.txt file for my KB, but it cannot find the sitemap. The URL I am trying to use to index my KB is help.xxx.com. This is the public URL, ie, the one my customers use to access the KB.

When I tried the workaround in the comments on the above thread, it didn't work. I created an xxx.force.com site with no name and attached my robots.txt to it. When I tell Google to index that site, it fails, saying: 

This url is not allowed for a Sitemap at this location. http://xxxx.force.com/knowledgebase/

Is the redirect causing a problem here? Or is something else the matter?

John naJohn na
The URLs may be case sensitive, have you checked this?
Naveed MakhaniNaveed Makhani
Yes. I believe they are case-sensitive (or at least, the ones on the publicly facing KB articles are), but the URLs I'm giving to Google exactly match those provided by Salesforce.