Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Unable to access sitemap.xml, using static publisher


Go to End


3 Posts   823 Views

Avatar
johannes

Community Member, 20 Posts

25 October 2011 at 10:43pm

Hi there,

I can't access the by the static publisher generated sitemal.xml. I always get forwarded to the login form, the only way to access it is using ?flush=1

So I looked up the content in the file sitemap-xml.html in the cache folder, it only contains a refresh to the login form o_0

<meta http-equiv="refresh" content="2; URL=/Security/login?BackURL=%2Fsilverstripe%2Fdev%2Fsitemap.xml">

The website is about to go live, it would be great if someone could give a hint!

Cheers, Johannes

Avatar
Willr

Forum Moderator, 5523 Posts

31 October 2011 at 8:44pm

it you site site map.xml via a web browser without static publisher rules in place what do you get? I can't see anything that would require the login in the module (no authenticated option).

Avatar
johannes

Community Member, 20 Posts

1 November 2011 at 11:24pm

It works just fine when I call the sitemap.xml on the dev machine where I don't use caching.

For now I removed the file from caching to make it accessible.