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

1 Magento install met 2 domeinen (incl. een subdomain) op shared hosting
 
chillafish
Jr. Member
 
Total Posts:  5
Joined:  2012-03-08
 

Hi allemaal,

Even een copy-paste vanuit het Engelse forum, omdat daar onnoemelijk veel spamberichten opkomen, dus deze post verdwijnt direct onderaan.  Ik ga ervan uit dat Engels “no problem” is grin

Thanks voor jullie hulp.

I am trying to setup 2 shops on 1 Magento install on a shared hosting.
One is at http://www.chillafishfad.com which is working fine.
The other is at shop.chillafish.com which is not working fine.

The website http://www.chillafish.com is supposed to stay at the current server, so only shop.chillafish.com is directed to the Magento install.

I have modified the BASE URL to both :
http://www.chillafishfad.com
and
http://shop.chillafish.com

In domain configuration, both http://www.chillafishfad.com (primary on that server) and parked (sub)domain shop.chillafish.com are pointing to the public_html folder where Magento is installed.

The .htaccess file is modified as follows.

RewriteEngine on
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php

SetEnvIf Host www\.chillafishfad\.com MAGE_RUN_CODE=chillafishfad_com
SetEnvIf Host www\.chillafishfad\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^chillafishfad\.com MAGE_RUN_CODE=chillafishfad_com
SetEnvIf Host ^chillafishfad\.com MAGE_RUN_TYPE=website

SetEnvIf Host shop\.chillafish\.com MAGE_RUN_CODE=shop_chillafish_com
SetEnvIf Host shop\.chillafish\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^chillafish\.com MAGE_RUN_CODE=shop_chillafish_com
SetEnvIf Host ^chillafish\.com MAGE_RUN_TYPE=website

RewriteCond %{HTTP_HOST} ^shop\.chillafish\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.shop\.chillafish\.com$
RewriteRule ^/?$ “http\:\/\/www\.chillafishfad\.com” [R=301,L]

The last part was added automatically (I redirected shop.chillafish.com to http://www.chillafishfad.com to see if it gets into that folder).

One is working.  For the other I get a standard bluehost screen, looks like the domain is not going to the right directory.

Anyone has a clue how to set this up ?
I have checked most posts about this, but usually it’s about 2 main domains instead of subdomains, or on a dedicated server, etc.

tx,
Seppe

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jordy van Overeem
Member
 
Total Posts:  43
Joined:  2010-10-06
 

Seppe,

Waar heb jij jouw hosting lopen?

Wij doen dagelijks installeren van multistores. Wanneer gewenst wil ik hier gerust naar kijken.
Mailen kan naar info@freshymedia.nl

Met vriendelijke groet,

Jordy van Overeem
FreshyMedia

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