| Posted: 10 January 2010 at 5:02pm | IP Logged
|
|
|
Hello, I've hit a roadblock and need some help, please. Some time ago, I created two versions of the same thing but did not clean up my mess. Now, I want to clean it up.
The following two requests go to the same place: http://www.example.com?brand_nbr=2898 and http://www.example.com?BrandNbr=2898
I have unsuccessfully tried the following RewriteCond rules to test EITHER one for a TRUE condition.
Does not work RewriteCond %{QUERY_STRING} ^BrandNbr=(\d+)$ [OR] RewriteCond %{QUERY_STRING} ^brand_nbr=(\d+)$
Does not work RewriteCond %{QUERY_STRING} ^BrandNbr|brand_nbr=(\d+)$
Does not work RewriteCond %{QUERY_STRING} ^(BrandNbr|brand_nbr)=(\d+)$
Does not work RewriteCond %{QUERY_STRING} ^(?:BrandNbr|brand_nbr)=(\d+)$
Does not work RewriteCond %{QUERY_STRING} ^(?:BrandNbr|brand_nbr)=(\d+)$ [NC]
Does not work RewriteCond %{QUERY_STRING} ^((?:BrandNbr|brand_nbr)=(\d+))$ [NC]
does not work RewriteCond %{QUERY_STRING} ^((?:BrandNbr|brand_nbr)=(\d+))?$ [NC]
What am I missing? My preference is to use an expression and not OR.
Thank you in advance.
|