Q:

Magento Multi-Store with Domain Alias - 404 Error on 2nd Store

I am trying to configure my magento app for a multistore configuration, I followed the recommended step according to the magentocommerce tutorials below.  I am getting a 404 error on the Home page for the 2nd store and cannot find where the configuration is failing.  Below are my steps taken, tutorials used and troubleshooting steps taken. 
Any help would be appreciated! 
Steps Taken

Set Default Root Categories – Packaging
   Using same catalog - so using the same default root category
    CATALOG>MANAGE PRODUCTS>
     Enabled Website = C*****-wholesale for products  
Create new Website, Store & Store Views:
  SYSTEM>MANAGE STORES>
   Website Name = C*****-wholesale
    Code = wholesale
   Store Name = Distributors
    Root Category = Packaging
   Store View - Distributors-English
    Code = dist  
Create Design Change for Wholesale Theme
 SYSTEM>DESIGN>ADD DESIGN CHANGE>
   Website = C*****-wholesale
   Store = Distributors
   Store View= Distributors-English
   Design =default/modern  
Changed Design template for scope - C*****-wholesale
 SYSTEM>CONFIGURATION>
   Current Config Scope: C*****-wholesale
 GENERAL>DESIGN>  

disabled "Use Default"
theme>template = modern  

Add instance of home page for Store View = Distributor-English
 CMS>PAGES>
      Page Title = Home
      Store View = Distributors-English  
Change Base URLs - Mag Admin
SYSTEM -> CONFIGURATION -> GENERAL -> WEB
Changed base urls for scope = C*****-wholesale
http://dist.c*****ment.com/
https://dist.c*****ment.com/  
Add environment directives to htaccess:
  SetEnvIf Host www.dist.c*****ment.com MAGE_RUN_CODE=wholesale
  SetEnvIf Host www.dist.c*****ment.com MAGE_RUN_TYPE=website
  SetEnvIf Host ^dist.c*****ment.com MAGE_RUN_CODE=wholesale
  SetEnvIf Host ^dist.c*****ment.com MAGE_RUN_TYPE=website  
Reset server and magento app. 

Restart server   
Reindexed
SYSTEM>INDEX MANAGEMENT
Cleared caches:
SYSTEM>CACHE MANAGEMENT
Recompiled
SYSTEM>TOOLS>COMPILATION
Manually deleted cache folders var/cache  

Tutorials Used
magentocommerce.com/knowledge-base/entry/tutorial-multi-site-multi-domain-setup
  magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/multiple-website-setup
  magentocommerce.com/images/uploads/multistore_webinar-flv/multistore_webinar-flv.html  
Troubleshooting

Use Web Server rewrites - Disabling didn't solve. 
magento.stackexchange.com/questions/19382/magento-new-website-store-products-links-404-error  
Do not use same name for Website name and Store Name. 
 lotusseedsdesign.com/blog/do-not-use-the-same-name-for-website-name-and-store-name

A:

Be sure to set the default home page under Admin -> System -> Configuration -> Design -> Default Pages -> CMS Home Page.   Change the Configuration Scope to each Store View and select the CMS pages that you've created for the home pages. 
Edit:
Try this approach instead of .htaccess.   
index.php
/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ?  $_SERVER['MAGE_RUN_CODE'] : '';

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

// New code 

switch($_SERVER['HTTP_HOST']) {
    case 'www.dist.c*****ment.com ':
    case 'dist.c*****ment.com ':
        $mageRunCode = 'wholesale';
        $mageRunType = 'website';
    break;
}

// end of New code

Mage::run($mageRunCode, $mageRunType);

