Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

V1.62 Multiple Stores; Links on 2nd site point to main
 
denutza
Jr. Member
 
Total Posts:  1
Joined:  2012-05-02
 

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

 
Magento Community Magento Community
Magento Community
Magento Community
 
EthanMcFenton
Jr. Member
 
Total Posts:  7
Joined:  2013-04-24
 

Hi,

Did you manage to get this working in the end? I’m in the exact same situation, All Links, including Product Categories are going to my domain1.com rather than staying at domain2.com

Regards,

Ethan.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top