another option is to use a subdomain per store. Then you just setup Apache to tell magento which "website/store" to use.
This way you can have multiple "stores" and "views" under the subdomain websites all in the same magento intall.
- settings are in System>Configuration>General/Web
- Unsecure . Base URL
- Secure . Base URL
- Cookie . Domain
this is the example.com store Apache config
<VirtualHost *:80>
AllowEncodedSlashes On
ServerName example.com
ServerAdmin [email protected]
DocumentRoot /var/www/html/
DirectoryIndex index.php
<Directory "/var/www/html/" >
AllowOverride All
</Directory>
SetEnv MAGE_RUN_CODE "default"
SetEnv MAGE_RUN_TYPE "Website"
</VirtualHost>
#this is the additional "ca" store Apache config <VirtualHost *:80> AllowEncodedSlashes On
this is the additional "ca" store Apache config
<VirtualHost *:80>
AllowEncodedSlashes On
ServerName ca.example.com
ServerAdmin [email protected]
DocumentRoot /var/www/html/
DirectoryIndex index.php
<Directory "/var/www/html/" >
AllowOverride All
</Directory>
SetEnv MAGE_RUN_CODE "ca"
SetEnv MAGE_RUN_TYPE "Website"
</VirtualHost>