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

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


Reply


2 Posts   1489 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
Pigeon

Community Member, 243 Posts

7 April 2010 at 8:45am

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