Setup: Bluehost, Magento V1.62, Not using SSL for now.
Main Installation on Addon Domain, works fine.
I added a 2nd website, ill call domain2.com
I want separate URLS and stores on each domain1.com and domain2.com
So far it works, however when I go to any link on domain2.com (MyAccount,Cart, Checkout, WishList, etc). they all
take me back to domain1.com URL. (When I hover over them, it also shows domain1 URL)
I followed about 10 different instructions from various sites with no luck.
I copied .htaccess an index.php to domain1 directory
edited htaccess to:
SetEnvIf Host www\\.domain2.com MAGE_RUN_CODE=magento_site_2
SetEnvIf Host www\\.domain2.com MAGE_RUN_TYPE=website
SetEnvIf Host ^domain2\\.com MAGE_RUN_CODE=magento_site_2
SetEnvIf Host ^domain2\\.com MAGE_RUN_TYPE=website
I also tried the same code in the main domain1 htaccess file for good measure but they both produces same result (as does
no addition to htaccess files)
My domain2.com/index.php file is edited to find Mage.php correctly in domain1 directory/app