showing URL's like in categories [solved]

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
justjust

showing URL's like in categories [solved]

Post by justjust »

Hello,
lets say I have page with structure:
first page
  - first page sub
  - first page sub no 2
secont page
third page
  -third page sub


Can I rewrite URL's in someway to show address like www.mydomain.com/first-page/first-page-sub.php? I made rewrite script which writes nice url's for all pages like www.mydomain.com/first-page-sub.php, but I want sub pages to be showed like in directory. I think I need some kind of modification in CMSMS?

I hope it was understandable :)
Thanks in advance
Last edited by justjust on Fri Aug 03, 2007 1:19 pm, edited 1 time in total.
Pierre M.

Re: showing URL's like in categories

Post by Pierre M. »

Hello,

do you mean how to reflect the hierarchy in the URLs ? This is builtin, see post installation optional settings.
Something like $config['use_hierarchy'] = true;
Hope I have understood well
Have fun

Pierre M.
justjust

Re: showing URL's like in categories

Post by justjust »

Yes, thats what I was looking for,
Thank you very much ;)
Phrontis
New Member
New Member
Posts: 5
Joined: Sat Sep 29, 2007 12:20 am

Re: showing URL's like in categories [solved]

Post by Phrontis »

Yahoo!

the article on pretty URLs and mod_rewrite, referenced above, explains it very well. The only trouble I had was finding the htaccess document, until I realized it was in the doc folder installed along with CMSMS on my site.

Thanks the help ...
Locked

Return to “CMSMS Core”