We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39666
    • 29 Posts
    Hi.

    I have some problems with a multidomain instalation in Revo2.2.6.

    I can´t view resources from context other than web from Manager > Resources >View Resource. I get Site Unavailable Page even with Administrator 0 SuperUser acces permission and with site_status Yes or No in contexts configuration.

    Also, resources other that index point to malformed friendly url (ej. www.mydomain.comresource.html instead of www.mydomain.com/resource.html) from Manager > Resources >View Resource.

    I have set the multidomain keeping exactly http://www.belafontecode.com/modx-revolution-hosting-multiple-domains/ tutorial(case 2, with separate folder for each domain, copying index.php and config.core.php and rewrite .htaccess for each domain)

    Some idea?

    Thanks [ed. note: abramco last edited this post 13 years, 7 months ago.]
      www.abelmartinez.net
      • 40706
      • 128 Posts
      I think there is no trailing slash in the site_url context-setting

      The other Thing could be several problems, for example an security Problem.
      Check the accesscontrols of the usergroup anonym. Below context access should all public contexts listed with Load Only rights.
        • 12028
        • 152 Posts
        I just spend at couple of hours yesterday on this problem...

        Did you edit the index.php file so it points to your context name?
        $modx->initialize('yourContextName');


        And do it include the config.core.php? See http://rtfm.modx.com/display/revolution20/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts

        There are a trailing slash after the value for site_url and base_url, but not for http_host!

        If you got it to work, then the next part can properly save you for some time:

        You can try this in your context settings:
        Key: link_tag_scheme
        Value: full

        And if you are using GetResources add this to your snippet call:
        &context=`yourContextName`
        &scheme=`full`


        If you are using Wayfinder add this:
        &contexts =`yourContextName` 
        &scheme=`full`
          - A small step for mankind, so why not take two...

          Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
          • 39666
          • 29 Posts
          Thanks every one.

          The first problem was the slash in site_url, really. I have tried that before, but foolishly don't clean cache before checkit.

          I keep with access problem from manager to view offline. I have Anonymous Memmber 9999 read only and Administrator SuperUser 0 Administrator for every context in UserGroups Context Access.

          I'm thinking the trouble is about session_cookie_domain....I'll try it and tell you...

          Best regards.
            www.abelmartinez.net