Setting up Google sitemap for a login required site

(Ray) #1

I’ve recently added the Discourse Sitemap plugin to my site. I’ve successfully generated my sitemap.xml file and uploaded it to my site.

When trying to set up my sitemap in Google, I get the following error:

We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

As far as I can see, the sitemap file follows the guidelines specified by Google.

If I’m logged in as an admin and click the link provided on the Google setup page to the sitemap file, it downloads fine. If I log out of my site and try clicking the link, I get the following message:

Oops! That page doesn’t exist or is private.

Is there a way to make the sitemap file accessible to Google?

(Jay Pfaffman) #2

Does your site require users to be logged in?

(Ray) #3

Yes, the site does require logging in.


That’s going against google webmasters best practices :wink:

How “google bot” will be logged in?

Use “Fetch as Google” to see how Google “see” your contents. :+1:

(Sam Saffron) #5

If you install the plugin you still need to enable it, did you do so? Does have a ref to the sitemap at the bottom?