homepage Welcome to WebmasterWorld Guest from 54.237.197.160
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Mod rewrite question - remove folders and constant parameters
How to do a mod_rewrite to take out folders and some constant parameters
BenjArriola




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

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.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved