We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29055
    • 7 Posts
    Hi,
    I’m having problem with base_url of my site.
    I installed it in a subdomain to test the features, but something goes wrong at the very beginning.
    MODx engine pretends everything is installed in my root folder, althought it’s not. It doesn’t refer to folder, where the files really are.

    I tried to hardcode the patch myself in config file, then looked for solution in the forums. None of them worked. The code below seems to be a simple trick, but it doesn’t work too...
    $site_url ="http://site.com/cms/";
    $base_url ="/cms/";
    


    My phpinfo:
    PHP Version 5.2.6

    System FreeBSD (hostname) 6.2-STABLE i386
    Build Date Nov 20 2009 15:57:29
    Configure Command no value
    Server API UltraCGI/1.0 for IdeaWebServer
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /usr/php
    PHP API 20041225
    PHP Extension 20060613
    Zend Extension 220060519
    Debug Build no
    Thread Safety disabled
    Zend Memory Manager enabled
    IPv6 Support enabled

    Any ideas how to fix it? The easiest way would be to move cms files to the root folder, but no way - I have my current site there smiley
      • 22303 MODX Staff
      • 10,725 Posts
      Evolution releases of MODx do not support multiple/sub-domains out of the box. There are some approaches to implementing these in Evolution releases, but you’ll need to follow the instructions for one of those to achieve this, and might get more help in the threads related to those approaches.

      Here is one such thread: http://modxcms.com/forums/index.php/topic,35543.0.html
        • 29055
        • 7 Posts
        Thank you.
        I’ll try the solution in my spare time. But that seems quite complicated, through.

        Evolution releases of MODx do not support multiple/sub-domains out of the box
        Do Revolution ones support it?
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: sxc at Mar 02, 2010, 03:58 AM

          Thank you.
          I’ll try the solution in my spare time. But that seems quite complicated, through.

          Evolution releases of MODx do not support multiple/sub-domains out of the box
          Do Revolution ones support it?
          Start at http://svn.modxcms.com/docs/display/revolution/Contexts -- the two tutorials listed there explain different approaches to achieve this using Contexts in Revolution, depending on what you want to do.