mod_rewrite

Brad Bartram bradbartram at ccsisp.com
Mon Feb 9 14:17:28 EST 2004


Hey everyone - 

I need some assistance with a mod_rewrite rule for Apache that for some reason 
I just cannot get working.  Hopefully someone here has some insight.

I have a url:

www.somedomain.com/directory/appname.ext?var1=val1&var2=val2

What I need to do is take any request destined for:

www.somedomain.com/directory/whatever.ext

and have it sent to:

www.somedomain.com/directory/index.php?appname=appname&var1=val1&var2=val2

That way appname is another variable that is appended to the end of the 
request.

I've been beating my head against the wall on this one for just a little too 
long now, so if anyone has any suggestions or even some links - I would be 
very appreciative.

Thanks

brad



More information about the nflug mailing list