tags:

views:

255

answers:

2

for example

i type in

www.myportal.com/cars/

no matter what links i navigate to within this site, i want the address bar in my browser to show just www.myportal.com/cars/

UNLESS

www.myportal.com/userpanel. i want the masking to stop when a link pointing to userpanel is clicked.

+1  A: 

This is not possible to do.

You can frame your site at yourportal.com/cars/ for the effect you want, but it's not something you can do with .htaccess.

Paul McMillan
You could also do some tricky stuff with cookies, but I'm not sure that would be worth the trouble.
musicfreak
yeah, but I don't know that you'd be able to do it just with .htaccess. Certainly at least have to modify the code of the site a bit.
Paul McMillan
okay thank you.
gqweg
musicfreak: That cookies idea is evil :-) And I'm sure it makes the code of the site an adventure to read
Joey
yeah, I thought about mentioning it when I made the reply, but I stand by my original answer. The questioner is incapable of doing it, even if I or perhaps some god of rewrite could.
Paul McMillan
A: 
Joey
i have a concern some sites will try to redirect out of the iframe when its detected.
gqweg
I didn't suggest an iFrame. Also why are you concerned about 3rd party sites? They shouldn't ever appear in your frameset.
Joey