We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34422
    • 4 Posts
    Upgraded from revo 2.1.1 and now multiple domains are failing with only the default domain being accessible.

    Here is .htaccess
    RewriteEngine On
    RewriteBase /
    
    
    
    # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
    #RewriteRule (.*) http://example-domain-please-change.com/$1 [R=301,L]
    #
    # or for the opposite domain.com -> www.domain.com use the following
    # DO NOT USE BOTH
    #
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} ^ajscg\.com [NC]
    RewriteCond %{HTTP_HOST} !^www\.ajscg\.com [NC]
    RewriteRule (.*) http://www.ajscg.com/$1 [R=301,L]
    
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} ^astokes\.org [NC]
    RewriteCond %{HTTP_HOST} !^www\.astokes\.org [NC]
    RewriteRule (.*) http://www.astokes.org/$1 [R=301,L]
    


    And my context is set to override the following
    base_url /
    site_name adam
    http_host www.astokes.org
    site_start 12 (my blog resource)
    site_url http://www.astokes.org
    


    /* Initialize the default 'web' context */
    // $modx->initialize('web');
    switch ($modx->getOption('http_host')) {
      case 'www.astokes.org:80':
      case 'www.astokes.org':
        $modx->switchContext('astokes');
        break;
      default:
        $modx->initialize('web');
        break;
    }
    

    run on php 5.3.x, mysql 5, linux, kernel 2.6.38, APC enabled

    needed to re-enable gateway plugin for the onrequest event embarrassed
      • 34422
      • 4 Posts
      No one has a clue I take it? Anything else I can provide to fix this issue ill be glad to provide. I didn’t expect a minor release upgrade to break multiple sites.