hierarchy in URLs

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
fivepix
Forum Members
Forum Members
Posts: 14
Joined: Sun Jan 24, 2010 10:19 pm

hierarchy in URLs

Post by fivepix »

For some reason I can't get the hierarchy in the URL to work?

i've set the url's to be friendly and that seems to be working okay
my urls are:

website.com/MainPage.html

When I add a page and set the parent to be the main I'm expecting the URL to be

website.com/MainPage/subpage.html

but i get: website.com/subpage.html

Have I missed a setting somewhere?
hasanen
Forum Members
Forum Members
Posts: 38
Joined: Tue Feb 15, 2011 8:44 am
Location: Helsinki, Finland

Re: hierarchy in URLs

Post by hasanen »

Try to add this in config.php:

Code: Select all

$config['use_hierarchy'] = true;
fivepix
Forum Members
Forum Members
Posts: 14
Joined: Sun Jan 24, 2010 10:19 pm

Re: hierarchy in URLs

Post by fivepix »

I have that in my config file, is there another setting somewhere?
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: hierarchy in URLs

Post by Jos »

which CMSms version do you have?
fivepix
Forum Members
Forum Members
Posts: 14
Joined: Sun Jan 24, 2010 10:19 pm

Re: hierarchy in URLs

Post by fivepix »

I just upgraded to version 1.10.3 i followed the steps in the documentation:
http://docs.cmsmadesimple.org/configuration/pretty-url

and added "$config['use_hierarchy'] = true;"
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: hierarchy in URLs

Post by Rolf »

fivepix wrote:and added "$config['use_hierarchy'] = true;"
you dont need that.
Check global settings page, there is a setting for "flat urls".

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “[locked] Installation, Setup and Upgrade”