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.

General Questions

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

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

Unable to access sitemap.xml, using static publisher


Reply

3 Posts   466 Views

Avatar
johannes

25 October 2011 at 10:43pm Community Member, 20 Posts

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

31 October 2011 at 8:44pm Forum Moderator, 5511 Posts

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

1 November 2011 at 11:24pm Community Member, 20 Posts

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.