How to rewrite a page out of a url.

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.
Post Reply
isaacd
Forum Members
Forum Members
Posts: 32
Joined: Wed Dec 16, 2009 12:54 am

How to rewrite a page out of a url.

Post by isaacd »

Hello.

What I am wondering if it is possible to rewrite a page out of the url. I would simply switch hierarchy off in config.php, but I know that option will dissipate in version 2 http://forum.cmsmadesimple.org/index.php/topic,42032.0.html. My situation is this:

Navigation structure:
1. auxiliary-inside
  1.1 inside-home
  1.2 pg2
    1.2.1 page-sub
      1.2.1.1 pg-subub
  1.3 inside-search
2 Home
3 About (etc)

I am already using pretty urls with mod_rewrite. What I want, is that when I click a menu link, or cms_selflink (or anything for that matter) to children of page 1, I don't want to see auxiliary-inside in my url. So this is an example of what I DON'T want:

http://inside.trilliumcharterschool.org ... 2/page-sub

and here is an example of what I do want:

http://inside.trilliumcharterschool.org/pg2/page-sub

Either of these will work when typed into a web browser, but as soon as one starts navigating, auxiliary-inside is automatically added to the url. This is what I want to prevent.

Thanks.
      Isaac.
Post Reply

Return to “CMSMS Core”