Microsoft
Software
Hardware
Network
Question : htaccess Partial Query String Rewrite
I have a client that changed his store code which changes one parameter in the query string.
See Store_Code=ABC in this link.
mysite.com/merchant.php?St
ore_Code=A
BC&Screen=
CTGY&Categ
ory_Code=W
S-S
Using .htaccess modrewrite,
how do I rewrite this so it becomes Store_Code=XYZ
mysite.com/merchant.php?St
ore_Code=X
YX&Screen=
CTGY&Categ
ory_Code=W
S-S
OR remove it so it becomes
mysite.com/merchant.php?Sc
reen=CTGY&
Category_C
ode=WS-S
Example;
RewriteCond %{QUERY_STRING} ^Store_Code=ABC$
RewriteRule what goes here?
Answer : htaccess Partial Query String Rewrite
This should look like this:
RewriteCond %{QUERY_STRING} ^Store_Code=ABC(.*)$
RewriteRule ^/merchant.php$ /merchant.php?Store_Code=X
YZ%1 [R,QSA]
Regards,
Arty
Random Solutions
cisco 2900xl unable to ping out or into switch
Replaced motherboard did XP Repair Now cd key invalid.
Free / Busy – inconsistent access with Exchange 2010 and Outlook 2003
Eclipse and Tomcat: HTTP Status 404
Recursive Query ?
Verizon providing 6Mb tunnel using VWIC-2MFT-T1
Exchange 2010 email Traffic Reporting
The System Protection Tab is missing in Vista. How can I restore it?
VBA to zip two specific files
A substitute for Terminal Server running under 2003. Any 3rd party tool, having basic features of TS?