How to set a Store View via .htaccess Magento

.htaccess

You can set the Store View code adding the following line to your .htaccess

In this example my Store View code is "french":

Hint: you can see your Store Views codes through your Admin > System > Manage Stores

How does it work?

In your index.php file in your root directory you will find the following lines (probably at the end of the file).

As you can see it uses the $_SERVER['MAGE_RUN_CODE'] if it has been set.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*