mod_rewrite navigation prob

igeoffi

Beta member
Messages
1
Well I got that last problem I had fixed so here's a new one I'm having.
I have mod_rewrite on my site on and its causing some navigation menu problems.

I coded my index file so that when you access:
http://dbhsusb.org/index.php?tpl=tech&id=about
You get the about page in a tech'ish type template.
and when you go to
http://dbhsusb.org/index.php?tpl=simple&id=about
You get the about page in a simple type template.
I don't like using redirects if I don't have to so I put several lines of code to check if the user selected a template or not and if not, give them the default one (the default is the tech'ish one).
I eventually want to add a preferences manager to the site which stores cookies on the users computer where they can choose what template they want to see everytime they go to the site.
I got mod_rewrite working so that you can access the about page in a tech'ish type template by entering
http://dbhsusb.org/tech/about.html
and the same thing in a simple template by entering
http://dbhsusb.org/simple/index.html
So all that works.

I just can't get the navigation to work. When you go to http://dbhsusb.org it doesnt work but if you go to one of the mod_rewrite urls it works. I can't get it to work on both the mod_rewrite urls and the main real url (dbhsusb.org).

You can view the site at http://dbhsusb.org
 
Back
Top Bottom