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   494 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, 5513 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.