My employer uses MIVA merchant as an online version of our store. I am currently trying to change all the dynamic links into static links via mod_rewrite. The problem i am having is that for some reason, products that have quotations in the name do not link correctly, I have a feeling this is a MIVA issue but is there a work around for handling the quotations with mod_rewrite?
Working URL without quotes:
- Code: Select all
http://www.tennieshardware.com/2/0233-20/MT2/MILWAUKEE+HEAVY-DUTY+MAGNUM%AE+KEYLESS+DRILL
Broken URL with quotes:
- Code: Select all
http://www.tennieshardware.com/2/0300-20/MT2/MILWAUKEE+HEAVY-DUTY+1%2F2%22+MAGNUM%AE+DRILL
mod_rewrite directives:
- Code: Select all
Options +FollowSymlinks
RewriteEngine On
#
RewriteCond %{REQUEST_URI} ^/1/(.*)/(.*) [NC]
RewriteRule (.*) /mm5/merchant.mvc?Screen=PROD&Product_Code=%1&Store_Code=TAH [L]
RewriteCond %{REQUEST_URI} ^/2/(.*)/(.*)/(.*) [NC]
RewriteRule (.*) /mm5/merchant.mvc?Screen=PROD&Product_Code=%1&Category_Code=%2&Store_Code=TAH [L]