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:

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