Forum Moderators: phranque

Message Too Old, No Replies

Rewriting fields and values from Querystring

         

Chrispcritters

1:45 pm on Apr 30, 2010 (gmt 0)

10+ Year Member



I'm missing something obviously simple. Launching a structure for a site and need to redirect some old urls.

FROM:

example.com/oldpath/oldcode.php?field=var

TO:

example.com/newpath/var

I've figured out how to rewrite everything up to the "?"

Thanks!

g1smd

6:58 pm on Apr 30, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use a preceding RewriteCond to examine the QUERY_STRING value.

There's example code in at least several threads in recent days.