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
Windows Explorer BackGround
Can you still get MCSE 2003 certified?
Windows 2003 Permon query
extending HDMI over Cat5e
type of card device to use with Dell Latitude D800
Remove Private Calendar Invitation in Outlook 2003
Extend Exchange 2010 trial licence?
no display while booting Linux live cds for HP EliteBook 8440p
SQL Query using SQL Plus in Oracle 10g
Users can't reconnect to RemoteApp Session