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

    After renaming the "manager" (cahce has been cleaned, etc.) and making sure I can successfully login into the admin panel with new URL I get an infinite redirect 301 if trying to access site.com/manager. Have I missed any step when renaming the manager folder?

    Thanks.
      • 42562
      • 1,145 Posts
      Did you inform your MODx core before doing such a deed?

      Look in core/config/config.inc.php
      find:
      if (!defined('MODX_MANAGER_PATH')) {
          $modx_manager_path= '/blah/blah./manager/';
          $modx_manager_url= '/blah/manager/';
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 780
        • 12 Posts
        Yes, that is exactly what I did. It didn't work at all until I clean up the cache. Then (after I was able to access the admin panel) just for sake of curiosity I tested the old URL and got this infinite redirect.
          • 780
          • 12 Posts
          Any idea on how I can debug this problem?
            • 42562
            • 1,145 Posts
            It didn't work at all until I clean up the cache.
            I thought it worked after you cleared the cache...?

            It is still not working or that you want to know why the old url is giving a redirect error?

            PS
            Have you tried testing from another browser?
              TinymceWrapper: Complete back/frontend content solution.
              Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
              5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
              • 3749
              • 24,544 Posts
              What happens if you enter another non-existent page?

              Check the error_page System Setting and make sure the page with that ID is published and doesn't redirect anywhere.

              Do you have any plugins that are connected to OnPageNotFound?

              If you watch the Network tab in Chrome Dev. tools or Firefox's utility (both activated with Ctrl-shift-i, IIRC), you may see what URLS are being visited during the loop.

                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 780
                • 12 Posts
                I confused you, apologies. After I cleaned up the cache it worked and it still works. The only problem is that when I try to access the previous path '/manager' path browser informs me the server redirects it infinitely (301). I would assume ModX to return (404) instead since the path doesn't exist anymore.