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.

Blog Module

Discuss the Blog Module.

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

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


Reply

4 Posts   1275 Views

Avatar
wayne

12 February 2011 at 2:04am Community Member, 14 Posts

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

12 February 2011 at 10:06am Community Member, 75 Posts

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

12 February 2011 at 2:30pm Forum Moderator, 5511 Posts

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

17 February 2011 at 3:37am Forum Moderator, 435 Posts

From 2.4.x