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. | |
|
Comments (0)