SOLVED: "hierachy-based" URLs

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
pristine

SOLVED: "hierachy-based" URLs

Post 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
Last edited by pristine on Wed Jul 25, 2007 10:19 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: "hierachy-based" URLs

Post 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
pristine

Re: SOLVED: "hierachy-based" URLs

Post 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
Locked

Return to “CMSMS Core”