Page 1 of 1

SOLVED: "hierachy-based" URLs

Posted: Wed Jul 25, 2007 9:46 am
by pristine
Hi,

I'm using CMSMS 1.1.

How do I make URLs that looks like this:

site.com/main/demo

(or, pre-mod-rewrite: site.com/index.php?dir=main&page=demo)

I know how to work the mod_rewrite, I just can't figure out how create the impression of parent folders in the URL. How do I customise the URL structure so that it shows the parent page and then the child page?

Thanks!

Edit: Problem solved. Through http://wiki.cmsmadesimple.org/index.php/User_Handbook/Installation/Optional_Settings, I enabled $config['assume_mod_rewrite'] in the config.php file, then enabled $config['use_hierarchy']. WOW! I'm so HAPPEE!! It works brilliantly.  ;D

Re: "hierachy-based" URLs

Posted: Wed Jul 25, 2007 10:08 am
by RonnyK
Pristine,

did you search for "Clean URLs" on this site, there are several posts about them. I don't know if that is what you mean....

Ronny

Re: SOLVED: "hierachy-based" URLs

Posted: Wed Jul 25, 2007 10:21 am
by pristine
Ronny,

No, I didn't search for that as what I wanted was the hierachy thing, and I knew how to make clean URLs. Admittedly, I didn't actually know what to search for. Somehow, I found that page in the handbook after combing through all other pages.

Anyway, problem solved and I'm over the moon!!

Cheers,
Pristine