We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26388
    • 103 Posts
    Just upgraded from 0.9.6.3 and when inside the manager editing/updating Tools -> Configuration then saving it is refreshing the page and changing the URL.

    So, login to the manager at: http://www.domain.com/manager

    Edit some configuration settings and click save, the settings save and the page refreshes to:

    http://domain.com/manager

    Which in turn just displays the login page again. My session is still active under www.domain.com/manager so I just type in the www. and I’m back but this is really super annoying - any idea on where/how to fix this issue?

    I’ve tried simple things like clearing my cache/cookies from the browser, clearing the MODx cache, and even tried replacing all the manager files. Still experience the same thing regardless. Same behavior in all browsers too.

    undecided
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Hmmm... looking at the save_settings.processor code
      $header="Location: index.php?a=7&r=10";
      

      I would think it should be using the same subdomain you are originally on. Most likely some kind of server settings to use domain.com by default.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 26388
        • 103 Posts
        So where should I look to try and fix? Note, this didn’t occur with the older version of Modx nor has the hosting environment changed.. huh
          • 10313
          • 375 Posts
          Hello,

          could you solve your problem already? I have the same problem.

          I think I narrowed it down to a missing trailing "/".

          My server-configuration is as follows:

          The main domain is [tt]www.mydomain.de[/tt]. But as long as I am working on the website, I’m using an additional domain [tt]work.testserver.de[/tt]. For technical reasons, MODx is installed in a subdirectory called "content". The second domain "work.testserver.de" is redirected to that directory. The original domain will be redirected to that directory as soon as I will have finished my work. I have been using this configuration for some 20 websites now (using MODx 1.0.3 and older). And it always worked.

          Today I have set up 2 new websites with the above settings, using MODx 1.0.4. And in both cases strange things happen:

          If I now type "http://work.testserver.de/manager" without the trailing "/", I will be redirected to "http://www.mydomain.de/content/manager/". Okay, that is no problem at first. If I type "http://work.testserver.de/manager/" (including trailing slash), it works as expected.

          I can work as usual. But if I save configurations in the manager, the manager tells me to wait until action is completed (don’t know the exact phrase, because I am using German language in the backend). And this is then the moment, where I would be redirected again to "http://www.mydomain.de/content/manager/".

          MODx does not know of my "www.mydomain.de", so this MUST be a server configuration issue. But on the other hand, older versions of MODx (up to 1.0.3) did not behave like this. So this probably could be solved by adding a slash in the right place, couldn’t it?

          I have been searching all relevant .htaccess files on my older web servers and on those two new ones. They are all just the default .htaccess files provided by MODx. I don’t know where to search on.

          Please, I need some hint smiley

          Thank you very much in advance
          Martin