We have a multistore setup correctly, however I need to assign correct urls via symlinks.
- Default Store: example.co.uk
- Language Page: example.com
- USA Store: example.com/us/
Under the root .htaccess I have the following:
SetEnvIf Host www\.example\.com/us/ MAGE_RUN_CODE=us_en
SetEnvIf Host www\.example\.com/us/ MAGE_RUN_TYPE=store
SetEnvIf Host ^example\.com/us/ MAGE_RUN_CODE=us_en
SetEnvIf Host ^example\.com/us/ MAGE_RUN_TYPE=store
I have also created a directory '/us/' and within I have index.php and .htaccess.
$compilerConfig = '../includes/config.php';
if (file_exists($compilerConfig)) {
include $compilerConfig;
}
$mageFilename = '../app/Mage.php';
$maintenanceFile = '../maintenance.flag';
$ip = $_SERVER['REMOTE_ADDR'];
$mageRunCode = 'us';
$mageRunType = 'store';
Mage::run($mageRunCode, $mageRunType);
}
What the website is missing is the content images, css and js, I have seen that this can be achieved via symlinks now how do I go about creating that for .com/us/ folder. Please note that the root dir is:
/home/example/public_html/