We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30319
    • 406 Posts
    We have cPanel hosting which effectively creates 'apache virtual hosts'.

    Main domain with MODx install is www.foo.org
    Root contains appropriate htaccess and index.php etc., site works fine.

    full directory is /home/essex/public_html/foo.org
    core is /home/essex/public_html/foo.org/core

    Desired top-level domain is www.foobar.org (not a sub-domain or sub-folder)

    full www.foobar.org site directory is
    /home/essex/public_html/foobar.org
    this folder is at same level as /home/essex/public_html/foo.org

    index.php pointing to foobar context is in this folder
    core.config.php with correct above core folder path is in this folder

    htaccess and context have base_url as /

    I'm still getting 500 server errors and nothing in the MODx log.

    Should htaccess for foo.org have a redirect/rewrite to www.foobar.org??
    If so, what??

    Puzzled!! Hope someone can help me out...

    Thank you, Tom
    not sure what/where/which files to fix

    This question has been answered by TomMLS. See the first response.

    • Are the virtual hosts pointing to those directories? Or is .htaccess rewriting the requests to those folders?
        • 30319
        • 406 Posts
        Presently htaccess rewrites no requests at all for either domain

        That's why I'm puzzled what or if or where I should put something in a htaccess somewhere??

        e.g. if I put an index.html into /home/es/public_html/foobar.org the site/domain will appear...

        Discovered that #discuss stripped the *sex* out of 'essex' in the path smiley smiley


        Thank you, Tom
        • discuss.answer
          • 30319
          • 406 Posts
          solved, two php things were not commented out in the .htaccess for the new top-level domain
          someone on modx forums had this issue several years ago, decided to try it...
          wa la!! site comes up.
          thank you, everyone...