Miva Merchant 301 Redirects

Home : Examples

WARNING - Changes to the .htaccess file should be performed by qualified personnel only. It is highly recommended that a backup of the current file is made before any changes are implemented.

Dynamic Category & Product to Short Link
RewriteCond %{QUERY_STRING} Screen=CTGY [NC]
RewriteCond %{QUERY_STRING} Category_Code=(.*)& [NC]
RewriteRule ^(.*) http://www.example.com/%1.html? [R=301,L]

RewriteCond %{QUERY_STRING} Screen=CTGY [NC]
RewriteCond %{QUERY_STRING} Category_Code=(.*) [NC]
RewriteRule ^(.*) http://www.example.com/%1.html? [R=301,L]

RewriteCond %{QUERY_STRING} Screen=PROD [NC]
RewriteCond %{QUERY_STRING} Product_Code=(.*)& [NC]
RewriteRule ^(.*) http://www.example.com/%1.html? [R=301,L]

RewriteCond %{QUERY_STRING} Screen=PROD [NC]
RewriteCond %{QUERY_STRING} Product_Code=(.*) [NC]
RewriteRule ^(.*) http://www.example.com/%1.html? [R=301,L]

Short Link to Short Link
Redirect 301 /old.html https://www.example.com/new.html?

Dynamic to Dynamic
RewriteCond %{QUERY_STRING} Screen=CTGY [NC]
RewriteCond %{QUERY_STRING} Category_Code=OLDCTGY [NC]
RewriteRule ^(.*) http://www.example.com/mm5/merchant.mvc?Screen=CTGY&Category_Code=NEWCTGY [R=301,L]

RewriteCond %{QUERY_STRING} Screen=PROD [NC]
RewriteCond %{QUERY_STRING} Product_Code=OLDPROD [NC]
RewriteRule ^(.*) http://www.example.com/mm5/merchant.mvc?Screen=PROD&Product_Code=NEWPROD [R=301,L]

RewriteCond %{QUERY_STRING} Screen=OLDSCREEN [NC]
RewriteRule ^(.*) http://www.kemperstrategic.com/mm5/merchant.mvc?Screen=NEWSCREEN [R=301,L]

For professional integration, please contact us via our Online Sales & Support Desk.

Comments & Ratings


 
All fields are mandatory!

Select your rating: