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

Magento Multipul Websites Install problems
 
readmanr
Jr. Member
 
Total Posts:  29
Joined:  2009-02-17
Yorkshire, England, Great Britain, United Kingdom
 

Okay, I have setup my websites as told to do so at… http://www.magentocommerce.com/blog/comments/video-creating-multiple-online-storefronts-part1/

I followed the video to the letter (however the files content and the magento admin has changed alot. (I’m using 1.3.1)

Okay, so I have http://magento.mycompany.com/
/var/www/vhosts/magento/public_html/

and http:www.sellingwebsite.co.uk/
/var/www/vhosts/magento/public_hmtl/sellingwebsite/

Now this works great, loads its separate items etc, pinging gives it a different IP.

when you view source of sellingwebsite.co.uk you see the following…

...
<
link rel="stylesheet" type="text/css" href="http://magento.mycompany.com/skin/frontend/default/sellingwebsite/css/reset.css" media="all" />
...

Is there a way to change this from happening? do I need to edit something in the /magento/public_html/sellingwebsite/.htaccess ?

Just wondering for when I get SSL and secure for “sellingwebsite” because it will say a big warning message saying “do you want to display unsecure items on this page”

Or do you just get one SSL for magento.mycompany.com and all extra websites and stores use the one SSL?

Please help.

Thanks,

Rob.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pkircher
Member
 
Avatar
Total Posts:  53
Joined:  2008-09-19
 

baseurl shoud change from self as u switch to https ... it can be set inside backend > magento handle it from self so no unsecure resources are getting loadet

regards Pierre

 
Magento Community Magento Community
Magento Community
Magento Community
 
readmanr
Jr. Member
 
Total Posts:  29
Joined:  2009-02-17
Yorkshire, England, Great Britain, United Kingdom
 

So that would meen I need an SSL certificate for http://magento.mycompany.com/ ?

Not for http:www.sellingwebsite.co.uk/, http:www.sellingwebsite2.co.uk/, http:www.sellingwebsite3.co.uk/ etc?

How do I get it so each website looks like a single install of magento, without actually having multipul installs of magento?

symlinks? some rewrites?

Please help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
readmanr
Jr. Member
 
Total Posts:  29
Joined:  2009-02-17
Yorkshire, England, Great Britain, United Kingdom
 

Okay this is now resolved, it is fixed by using symlinks on linux.

Insted of making a copy of index.php and .htaccess to a subfolder in your magento directory.

Simply do this…

Okay you Magento in installed in…
/var/www/vhosts/magento/public_hmtl/
and domain magento.mycompany.com points to that folder.

sellingwebsite.co.uk points to…
/var/www/vhosts/sellingwebsite.co.uk/public_html/
This is the folder you want to copy your index.php and .htaccess files to.
Edit index.php to say Mage::run(’sellingwebsite’, ‘website’);
The line $mageFilename = ‘app/Mage.php’; should stay the same.

In the /var/www/vhosts/sellingwebsite.co.uk/public_html/ you will need to create some symlinks.

In SSH

cd /var/www/vhosts/sellingwebsite.co.uk/public_html
ln -s /var/www/vhosts/magento/public_html/app/ /var/www/vhosts/sellingwebsite.co.uk/public_html/
ln -s /var/www/vhosts/magento/public_html/js/ /var/www/vhosts/sellingwebsite.co.uk/public_html/
ln -s /var/www/vhosts/magento/public_html/media/ /var/www/vhosts/sellingwebsite.co.uk/public_html/
ln -s /var/www/vhosts/magento/public_html/skin/ /var/www/vhosts/sellingwebsite.co.uk/public_html/
ln -s /var/www/vhosts/magento/public_html/var/ /var/www/vhosts/sellingwebsite.co.uk/public_html/

Point your sellingwebsite.co.uk domain to /var/www/vhosts/sellingwebsite.co.uk/public_html/

In the sellingwebsite config set the domain as the base url insted of base link url as said in the video.

You should be good to go.

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