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.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to create subfolder? ie http://domain.com/blog/name-of-the-article ?


Go to End


4 Posts   2217 Views

Avatar
wayne

Community Member, 14 Posts

12 February 2011 at 2:04am

Hi,

It seems that all pages in SS are child of the root domain. ie:
http://domain.com/name-of-the-page

I want to be able to move all my blog articles into a subfolder. ie
http://domain.com/blog/name-of-the-page etc

Is there any way of doing this?
thanks
Wayne

Avatar
Phill

Community Member, 81 Posts

12 February 2011 at 10:06am

Hey Wayne

To enable nested urls try adding this to your /mysite/_config.php im not sure which versions of SS support nested URLs but i believe its relatively new to SS

SiteTree::enable_nested_urls();

Avatar
Willr

Forum Moderator, 5523 Posts

12 February 2011 at 2:30pm

im not sure which versions of SS support nested URLs but i believe its relatively new to SS

It has been around since 2.4.0.

Avatar
biapar

Forum Moderator, 435 Posts

17 February 2011 at 3:37am

From 2.4.x