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 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

Static publishing of pages with different URL that isn't accessible?

Go to End



Community Member, 61 Posts

26 November 2011 at 8:49pm

I am trying to use the static publisher to statically publish my pages with a different URL.

What I mean by this is that when I publish my pages in the CMS I am at But I want the pages to be rendered with all the URLs in the pages html to be the URL

It seems to be that this can be done by using FileSystemPublisher::set_static_base_url('').

However when I use this the pages don't get rendered and cached with their content. All of the pages have the "Page Not Found" content. However all of the menu links in the pages are set to the URL ''.

What I think is happening here is that the static publisher tries to request the page from rather than But because the site currently isn't at it returns a page not found.