Knowledgebase: Tips and Tricks
Force Miva Merchant requests to a specific store if the store is not specified
Posted by - NA -, Last modified by Jen Ferraz on 30 March 2011 03:14 PM
Some customers have multiple storefronts in their Miva Merchant installations but do not want people being able to request just merchant.mv or merchant.mvc to get a list of the stores.


To default all requests to a specific store in your mall, place the following code in a .htaccess file in the Merchant2 directory:

# The idea of this file is that it will add a store code
# to a request for merchant.mvc if the request is a GET
# request only, and only if there are no other GET variables.
#
###
# Turn the rewriting engine on

RewriteEngine on

#RewriteBase /

RewriteCond %{REQUEST_METHOD} GET [NC]

RewriteCond %{REQUEST_URI} merchant.mvc

RewriteCond %{QUERY_STRING} !.+

RewriteRule (.*) $1?Store_Code=ABCD [QSA]

The ABCD is the store code in that last line, replace that with the code of your storefront that you want to have as the default.



(546 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?