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   1314 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, 77 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, 5513 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