After installing the 1.4 update, I managed to finesse my way through all of the problems that arose.
However, my multistore setup became broken (All of my websites on seperate domains are redirecting to my domain1.com shop instead of using just the path/to/app/Mage.php). I initially setup vhost.conf/vhost_ssl.conf for virtual domains under domain1.com:
<Directory /var/www/vhosts/domain2.com/httpdocs>
php_admin_flag engine on
php_admin_value open_basedir none
</Directory>
After the install, it seems index.php has changed considerably. I assumed :
I assumed this was related to the open_basedir exception already made as an exception in the vhost.conf/vhost_ssl.conf files previously mentioned.
I’ve gone into http.conf at root, I’ve tried to manipulate .htaccess, index.php, etc. to no avail. I had multiple domains running under one admin install working perfectly until the upgrade.
domain1.com is running under the same deprecated files as the rest of the domains(2,3,4).
I tried replacing the updated .htaccess and index.php on domain1.com, no luck.
If anyone else is running multiple domains and has run into this problem please let me know, thanks.
No problem with admin, just /path/to/app/Mage.php redirects to the main installation folder (domain1.com). Before I conquered this problem previously I would be met with a /path/to/app/Mage.php not found error.
I was never redirected. It seems some of the architecture may have changed although I find it hard to believe it is server related with the exception provided and working fine. It seems odd that app/design/frontend/default/domain2 or skin/frontend/default/default/domain2 would throw exceptions.
After installing the 1.4 update, I managed to finesse my way through all of the problems that arose.
However, my multistore setup became broken (All of my websites on seperate domains are redirecting to my domain1.com shop instead of using just the path/to/app/Mage.php). I initially setup vhost.conf/vhost_ssl.conf for virtual domains under domain1.com:
<Directory /var/www/vhosts/domain2.com/httpdocs>
php_admin_flag engine on
php_admin_value open_basedir none
</Directory>
After the install, it seems index.php has changed considerably. I assumed :
I assumed this was related to the open_basedir exception already made as an exception in the vhost.conf/vhost_ssl.conf files previously mentioned.
I’ve gone into http.conf at root, I’ve tried to manipulate .htaccess, index.php, etc. to no avail. I had multiple domains running under one admin install working perfectly until the upgrade.
domain1.com is running under the same deprecated files as the rest of the domains(2,3,4).
I tried replacing the updated .htaccess and index.php on domain1.com, no luck.
If anyone else is running multiple domains and has run into this problem please let me know, thanks.
I have the same problem. I have multiple domains each with a separate IP address, The web root and document root directories are sub directories of the Magento directory. Each Domain has its own index.php and .htaccess files in its web root.
it all worked fine before the upgrade. Now whatever domain is requested the default magento site is served. Prior to the upgrade all the domains had a separate theme and this is also broken.
None of the configuration settings to do with url redirects in the admin control panel seem to have any effect on the problem.
Look at my above post about the url setting in the admin as well. That one little checkbox was screwing everything up for me.
Also, make sure your permissions and file ownership are shared across all domains.
Let me know if this helps.
Hi This solution does indeed work. James Baliotti of iPic Publishing also mailed me the same answer so thank you to both of you. Curiously however setting “Redirect to Base URL if requested URL doesn’t match it” to yes in the admin control panel does not seem to cause a problem on my site although I have not tested it extensively yet. But it appears to work happily with that set to yes.
I have magento installed in a shared hosting.
So I can access the .htaccess file.
I have a parked domain tha points in the root directory.
As thisn says:http://www.magentocommerce.com/wiki/general/multiple-website-setup#multiple_websites_on_magento_1.4_single_installation
the only thing I have to do is add the following code at the .htaccess file.
1 - In admin / System / Configuration / (in the left column, on the top you have “Current configuration scope” It should be “Default Config"),Down go to TAB: / WEB / (in the list from the right, in the first TAB: URL OPTIONS ), set “Redirect to URL Base URL if requested it does not match “to NO. See image attached.
2 - Add the following at the bottom of your file “htaccess” in your Magento root installation.
Attention;
“newebsite.com” is the new domain name, example: (http://www.newwebsite.com).
and
“newebsite” is the code of your new “website” in the Magento admin.
See image attached.
3 - Change the file “index.php” (+ / - line 75) located is your Magento root installation, like this:
In the original file, the last line of the “index.php” ends with “store”, so the only thing to change in this “index.php” is store to website.
Also, keep your New Website “Current Configuration Scope” Unsecure and Secure - Base URL and Base Link URL to “default , as it was after original installation.
Flush Magento Cache.
Now you just have to point your new website like this: www.newwebsite.com/magento (magento if your root folder is called magento of course).
I did translate from my french post so I attach the french image from the admin.
well… when I changed Redirect to URL Base URL to NO and then my new domain pointed its main page!!! but when I clicked at another link then it linked again to the main website.
Then I have put the code at the .htaccess and also changed from store to website at the index.php but finally I got a “500 - Internal Server Error” at all pages including the main website. Then I have cut the code from the .htaccess and the main website works fine again.
I think I am half way to the solution. Do you have any idea what I might be doing wrong?