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
mysql query - version
Match string to a string Java
Uninstall string for Backup Exec 2010 Remote Agent
IAT patching, problem when calling back to original target function?
Trouble with the dependesnt select boxs
the workstation driver is not installed, cannot access network shares from server or workstations
How to change the regualr property to the automated property for which the automated property is working fine
when moving files(pdf mp3 etc.) from Mac OS X 10.6 to NTFS'ed UBS Stick then to Win XP, hidden files appear
Excel: Programmatically determine if Trust Access To VB Project has been set
Cannot uninstall iSeries Client Access