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 forum.silverstripe.org 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

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


Go to End


2 Posts   2248 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