1 Feb 2007 01:45
Re: RewriteRule
Joshua Slive <joshua <at> slive.ca>
2007-02-01 00:45:01 GMT
2007-02-01 00:45:01 GMT
On 1/31/07, Javier Martínez Fernández <ecentinela <at> gmail.com> wrote: > Thanks, but I can't understand this. I'm a newbie on apache config. > Some more help, please? > > > El 31/01/2007, a las 21:04, Joshua Slive escribió: > > > On 1/31/07, Javier Martínez Fernández <ecentinela <at> gmail.com> wrote: > >> I'm making a rewrite rule and I'm having problems with the "?" > >> character > > > > Read the box labeled "Note: Query String" under > > http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule The query string is the part of URL following the ?. It is not matched by a standard RewriteRule. In your case, you'll need something like RewriteCond %{QUERY_STRING} blahblah In the blahblah, you match against, the part after the ?. Then in the following RewriteRule, you can use back-references (%1, %2, etc) to grab the matches. I'd give a crack at showing you how your case should work, but I find your example too complex and confusing. You appear to be embedding a second query string inside the query string, which isn't going to work (the second question mark will need to be escaped). Some general advice: - Google a little for "RewriteCond QUERY_STRING" and you'll find lots of examples.(Continue reading)
RSS Feed