Forum Moderators: phranque

Message Too Old, No Replies

modRewrite with url variables

         

wwhite

2:25 am on May 6, 2004 (gmt 0)

10+ Year Member



I know I can use modRewrite to clean up my URL's. Say I want to pass some url variables such as a site search script.

Like this:
[sitename.com...]

Thanks for any help.

jdMorgan

3:12 am on May 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Normally, the query string is passed unmodified to the substitution URL.

If you need to modify it, you can do so by capturing the requested query string with


RewriteCond %{QUERY_STRING} (.*)

and then back-reference that query string value using %1 in the following RewriteRule.

Jim