Please apologize,… but I despair with my multistore configuration.
When I choose store2, I get an error
I don´t find what’s wrong :-(
I explain:
I need two shops, magento 1.5.0.1
-www.shop1.de
-www.shop2.de
in manage store is all right.
My Problem must be in the index.php. Here the code of index.php shop2. Shop1 I modify nothing.
.......... $mageFilename = '../app/Mage.php' ; $maintenanceFile = 'maintenance.flag' ; if (! file_exists ( $mageFilename )) { if ( is_dir ( 'downloader' )) { header ( "Location: downloader" ); } else { echo $mageFilename . " was not found" ; } exit; } if ( file_exists ( $maintenanceFile )) { include_once dirname ( __FILE__ ) . '/errors/503.php' ; exit; } require_once $mageFilename ; #Varien_Profiler::enable(); if (isset( $_SERVER[ 'MAGE_IS_DEVELOPER_MODE' ] )) { Mage :: setIsDeveloperMode ( true ); } #ini_set('display_errors', 1); umask ( 0 ); // this first line detects the domain / sub domain switch( $_SERVER[ 'HTTP_HOST' ] ) { /* store2 case 'shop2.de': case 'www.shop2.de': Mage::run('codeshop2', 'website'); break; case 'shop1.de': case 'www.shop1.de': / Mage::run('codeshop1', 'website'); break; } nothing else
or the .haccess - Here the code of .haccess shop2. Shop1 I modify nothing.
The last lines, in the bottom
############################################SetEnvIf Host .* shop1 .* MAGE_RUN_CODE = "base" ; SetEnvIf Host .* shop2 .* MAGE_RUN_TYPE = "website" ;
look at screenshots…
I would be happy about help.....please excuse my bad english.
Image Attachments
Click thumbnail to see full-size image
Signature
*************************
Ich fürchte mich nicht vor dem
langsamen Vorwärtskommen,
ich fürchte mich nur
vor dem Stehenbleiben.
*************************
Danke für eure Hilfe
Brigitte