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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

Customising urls - from /page-name/ to /page-name.html


Go to End


2 Posts   1855 Views

Avatar
Hammy

Community Member, 49 Posts

30 June 2009 at 8:49am

Edited: 30/06/2009 9:02am

I have a quick question regarding the complexity of making the following changes to the way Silverstripe produces urls:

From:
/page-name/

To:
/page-name.html

Since /page-name/ looks like a directory with possibly more files within that directory, is it possible to change the url rewriting to /page-name.html and if so what are the complications (if any)? Has anyone done this before?

(Sorry if this question has been asked before - could only find references to path names like /section-name/page-name/ and not directly to having /page-name.html instead)

Avatar
dhensby

Community Member, 253 Posts

7 April 2010 at 8:45am

This has been asked (and solved) before: http://www.silverstripe.org/customising-the-cms/show/269222