Welcome to WebmasterWorld Guest from 50.17.78.238

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Mod rewrite question - remove folders and constant parameters

How to do a mod_rewrite to take out folders and some constant parameters

     

BenjArriola

9:47 pm on Jun 22, 2007 (gmt 0)

5+ Year Member



My client has a site that is something like this:

www.domain.com/i/dont/need/?this=and-this&but-i=need-this

But in all his pages, this is constant, as in it never changes ever.

i/dont/need/?this=and-this

Although I recommended to the developer to store the variables elsewhere since it is always the same, or even place it in a session var or cookie, but he has something else in mind, I think he's just lazy to go into his code.

And since the web developer does not feel like fixing it from the top and is looking for a mod_rewrite solution to make:

www.domain.com/i/dont/need/?this=and-this&but-i=need-this

into

www.domain.com/?but-i=need-this

Need help from mod_rewrite experts.