%QUERY_STRING pattern not-matched no idea why
3 posts
• Page 1 of 1
%QUERY_STRING pattern not-matched no idea why
I am new to url rewriting, and I'm sure there is a lot to learn, but this one seems simple and is just baffling to me.
I have the following rules...
RewriteCond %(QUERY_STRING) itemnbr=376
RewriteRule ^/shopcart/oneitem\.asp?$ http\://xpress.nationalticket.com/xpress [NC,R=301,L]
The Rewrite.log file is saying...
(3) applying pattern '^/shopcart/oneitem\.asp?$ to uri '/shopcart/oneitem.asp'
(4) RewriteCond: input='%QUERY_STRING' pattern='itemnbr=376' => not-matched
The request header is a GET /shopcart/oneitem.asp?itemnbr=376
What am I missing here?
I have the following rules...
RewriteCond %(QUERY_STRING) itemnbr=376
RewriteRule ^/shopcart/oneitem\.asp?$ http\://xpress.nationalticket.com/xpress [NC,R=301,L]
The Rewrite.log file is saying...
(3) applying pattern '^/shopcart/oneitem\.asp?$ to uri '/shopcart/oneitem.asp'
(4) RewriteCond: input='%QUERY_STRING' pattern='itemnbr=376' => not-matched
The request header is a GET /shopcart/oneitem.asp?itemnbr=376
What am I missing here?
Re: %QUERY_STRING pattern not-matched no idea why
There should be {} instead of ():
RewriteCond %{QUERY_STRING} itemnbr=376 [NC]
RewriteRule ^/shopcart/oneitem\.asp$ http\://xpress.nationalticket.com/xpress [NC,R=301,L]
RewriteCond %{QUERY_STRING} itemnbr=376 [NC]
RewriteRule ^/shopcart/oneitem\.asp$ http\://xpress.nationalticket.com/xpress [NC,R=301,L]
Re: %QUERY_STRING pattern not-matched no idea why
Amazing... totally overlooked that. Surely won't happen again!
Thank you!![Smile :)](./images/smilies/icon_e_smile.gif)
Thank you!
![Smile :)](./images/smilies/icon_e_smile.gif)
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 25 guests