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

How to set up 2 shops using 2 sub-domains and only 1 configuration? Urgent Thanks
 
piccaya
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-10-07
Brussels
 

Hi Folks,

I run Magento 1.1.6 on a VPS using Plesk as a linux server management tool.

Basically I would like to sell computer under one subdomain (i.e. computer.domain.com) and books under the second sub domain name (i.e. books.domain.com) - of course both sites would have a different look and feel. Magento files are saved under http://computer.domain.com/ (root folder)

I have seen and have read most of the topics on this site and watched also the videos (part 1 and 2) but unfortunately it doesn’t seem to be working in my case.

Okay here is the way I have configured my stuff:

1/ System -> Manage the shops

2 shops have been created

a/ Book Shop (code: bookshop) + root category (including already one category and 1 product) + 1 language (code: bookshop_fr)
b/ Main Website + different root category + 3 languages (still the default configuration)

2/ System -> Configuration

a/ default:

base url = http://computer.domain.com/
(both secured and unsecured)

b/ bookshop:

base url = http://bookshop.domain.com/
(both secured and unsecured)

3/ Files

Magento files have been saved under http://computer.domain.com/ (root folder)
index.php and .htaccess have been saved under the root folder of bookshop.domain.com

Now I don’t have a clue on how to configure the following lines in index.php

$mageFilename = ‘app/Mage.php’;

and

Mage::run();

Accordingly to my own configuration.

Assuming that my absolute path to access the original “Mage.php” would be:
/var/www/vhosts/domain.com/subdomains/computers/httpdocs/app/Mage.php

At this stage, I have the impression to play with a jigsaw, so I would appreciate to know where is the issue. Is there any good soul to show me the path to the truth and a bit of sleep…

Cheers

Michel

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