For our example store, we use http://brew-me-a-cup.com. We are going to set up our store for Spain under http://brew-me-a-cup.com/spain. However, we must be careful from now on to ensure that we never have a product or category that uses the URL /spain
. That URL is now reserved only for our Spanish customers.
First, we will copy .htaccess
and index.php
into the new website's directory.
1. On your web server, under the default Magento directory, create another directory for your international store. In our example, we will create http://brew-me-a-cup.com/spain.
2. From the default Magento directory, copy the files
.htaccess
andindex.php
into the directory that you just created.3. With a text editor, open the copy of
index.php
.4. Look for the line
$mageFilename = 'app/Mage.php'
;. Change it to$mageFilename = '../app/Mage.php'
;.5. Look for the line
Mage::run()
;. In the parentheses, insert the code for...