Page 1 of 1

How to rewrite a page out of a url.

Posted: Thu Mar 04, 2010 5:20 am
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.