cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9 Multi Store with Multi Website

Magento 1.9 Multi Store with Multi Website

I am about at my end!
I have followed many tutorials on how to get this done.
I have a current website, I need another website on a different domain that shares the same database as website #1.
Always end up with the same error:

/app/mage.php cannot be found.
What am I doing wrong?
I've read that there should be no instance of magento installed on the second domain.
I insert a .htaccess file and an index.php file.
After making the changes on the tuturial....
Error message

Can anyone give me a hand on how to get this corrected?

6 REPLIES 6

Re: Magento 1.9 Multi Store with Multi Website

all you need to do just go to magento admin and create another website:

https://docs.magento.com/m1/ce/user_guide/store-operations/stores-multiple.html

 

then just add this website code into .htaccess:

https://stackoverflow.com/questions/8754089/magento-site-switching-htaccess

 

------------
MagenX - Magento and Server optimization

Re: Magento 1.9 Multi Store with Multi Website

Couple of questions....
I have seen many tutorials on doing this.
I'm a bit confused. So please bare with me but I need some clarification.

I have 2 domain names. Should there be a subfolder in my main directory for this 2nd domain?
If so, I would copy the htaccess and index files in that folder and then modify them?
Or, just modify the main site htaccess and index files?

 

 

Re: Magento 1.9 Multi Store with Multi Website

no need any folders or copy files...

 

just add new website in magento admin, select new webstire scope and configure base url,

then add website code to root .htaccess file

------------
MagenX - Magento and Server optimization

Re: Magento 1.9 Multi Store with Multi Website


SetEnvIf Host thunderkissnw.com MAGE_RUN_CODE=base
SetEnvIf Host thunderkissnw.com MAGE_RUN_TYPE=store

SetEnvIf Host tknwthunderdome.com MAGE_RUN_CODE=thunderdome
SetEnvIf Host tknwthunderdome.com MAGE_RUN_TYPE=website

 

This is what I have in my htaccess file in the root.

Still errors out with


home/thunderk/public_html/tknwthunderdome.com/app/Mage.php was not found

Re: Magento 1.9 Multi Store with Multi Website

Found that there was a sub folder in the root directory for the second website. 

Deleted that and the Mage error went away.
Issue is now that when I try to access the second site, it still directs me to my  main site

 

Re: Magento 1.9 Multi Store with Multi Website

Did you manage to fix this ? Find a solution ?