Magento Forum

Help with 404 Error with Multiple Websites/Stores (second store only)
 
techconcert
Jr. Member
 
Total Posts:  2
Joined:  2011-08-03
 

I am getting a 404 error: Page not found. page, along with the Magento logo, standard template, and magento trademark on my second store (pro.website.com) rather than a correct CMS page and the template selected in the backend.

Thanks in advance for any help

I want a retail store on http://www.website.com and a pro store (diff template, diff products, some shared/some unique cms pages) on http://pro.website.com

I followed the many guides in these forums, along with the tutorials on crucial and other hosts. 

0. Setup a subdomain in cpanel (pro.website.com) that maps to /pro subfolder
1. Create new Category ("Pro Products")
2. Create new Website (Pro), Store Name (proproducts), Store View (pro_english)
3. Copy index.php to /pro and edit

$mageFilename '/home/myaccount/public_html/app/Mage.php';

/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE''proproducts';

/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE''website';

Mage::run($mageRunCode$mageRunType);

4. Copy .htaccess to /pro and edit

# comment out root RewriteCond %{HTTP_HOST} ^website\.com$ [OR]
RewriteCond %{HTTP_HOST} ^pro\.clnwash\.com$
RewriteRule ^/?$ "http\:\/\/pro\.clnwash\.com\/" [R=301,L]

SetEnvIf Host 
.*website.* MAGE_RUN_CODE="proproducts"
SetEnvIf Host .*website.* MAGE_RUN_TYPE="website";

5. In Magento backend / System / Configuration
Configuration Scope: Pro Products
Web: changed secure/unsecure base_url http://pro.website.com/
Design: change template

6. In CMS, made sure the shared templates were set to All Store Views

7. My host created symlinks to app, errors, includes, js, lib, media, skin, var
-----
Since the magento logo is loading (from the subdomain as http://pro.website.com/errors/default/images/logo.gif), I’m not sure what I missed from the guides

I know the latest guide says index.php doesn’t need to be copied, but when I didn’t use it then my root in /pro was visible and nothing was loaded.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vholkano
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2008-02-23
 

Hi,
I am having the same issue, Do you get to the solution?
Looking Forward

 
Magento Community Magento Community
Magento Community
Magento Community
 
markramos83
Jr. Member
 
Total Posts:  13
Joined:  2010-12-09
 

I had this problem, and fixed it by changing my Store code to the same as my website code. I don\’t know why this fixed it, but it did smile In the above example, pro_english would be changed to proproducts in Admin > Manage Stores.

 
Magento Community Magento Community
Magento Community
Magento Community
 
markramos83
Jr. Member
 
Total Posts:  13
Joined:  2010-12-09
 

^ Scratch that it messed up my main store :(

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