We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42393
    • 143 Posts
    I have my old/existing business site with domain/products/foo.htm and domain/services/bar.htm, etc. I want to replace that site and get everything to map over to my new Revo site. I don't expect the URLs to line up perfectly. I have my resources organized into categories like products/foo and services/bar.

    There are always discussions here about details about specific addins, but I'd like opinions on the current best practices for doing a migration like this?
    - The best plugin and/or techniques to get /pathX and /pathX/fileY.htm to hit resourceIDx
    - To preserve pathX/pathY as categoryX/categoryY where desired?
    - To quickly identify and fix missing resource issues.
    - To allow multiple vectors into the same resources: /pathX/foo, /foo, /anything/foo, etc.

    I know I'll miss some, so I want 404's to be logged and for the user to hit a decent 404 page, not just the home page. Then I'll fix those pages as fast as I can find them.

    Ideally, rather than a 404, I'd really like to preserve the old site in a subdomain, and if I don't have a new page setup, I'd like to redirect to the old page in the subdomain. So /products/foo.htm has a resource but /products/bar.htm gets logged and then redirected to sub.mydomain/products/bar.htm. When I fix it, that redirect will no longer happen, until at some point I can trash the old site.

    Thanks for your time.
      Loved ModX when I was using it a few years ago. Shifted to WordPress, sorry. Thanks, all.
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Check out the Redirector and LogPageNotFound packages.

      With redrector, you can enter specific urls to 301 redirect to your new urls. The logPageNotFound package will give you a log page listing every 404.

      In system settings, set the error page to a custom 404 resource so users won't get the home page.

        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 42393
        • 143 Posts
        Got um. Will let you know how this progresses. Thanks.
        As an aside, here are yet more addons that have no information about how to use them. We do the install and then hunt around the environment to see what changed, look around for docs, etc. *sigh*
          Loved ModX when I was using it a few years ago. Shifted to WordPress, sorry. Thanks, all.
          • 10208 ☆ A M B ☆
          • 1,780 Posts
          Quote from: captainstarbuck at Dec 31, 2012, 04:12 PM
          Got um. Will let you know how this progresses. Thanks.
          As an aside, here are yet more addons that have no information about how to use them. We do the install and then hunt around the environment to see what changed, look around for docs, etc. *sigh*

          You're in good company at least :~}

          Key locations for info/docs (drill down into each to find it all)

          -core/components
          -assets/components
          snippets/plugins -> edit snippet (read snippet/plugin)
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 3749
            • 24,544 Posts
            http://bobsguides.com/logpagenotfound-tutorial.html

            BTW, that URL is in the readme.txt file you see when you install the plugin or view the description in Package Manager and also at the plugin's page at the Extras site.

            All my extras are documented at http://bobsguides.com.
              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
              • 42393
              • 143 Posts
              Thanks for that, Bob! With your info, I've created a place on my site to display management reports like the Bot Block Report, Empty Aliases, and Pages Not Found.

              I started to go through your site late last week and simply haven't made it through, and I'm overwhelmed with identifying where information is for various addons. I think the more I learn the more I will find it necessary to go back and re-read various resources simply because I couldn't absorb them the first time.

              The wiki has the doc for Redirector.

              I think I'm good for now as far as sending people where I want and reporting if they go somewhere else. This question is Answered but I left it as a discussion in case someone wants to discuss other options.

              Thanks!
                Loved ModX when I was using it a few years ago. Shifted to WordPress, sorry. Thanks, all.
                • 3749
                • 24,544 Posts
                I've been told that the MODX guys have modified LogPageNotFound for modx.com to automatically add rewrites to .htaccess. I've meant to do that, but haven't had time. AFAIK, they haven't released it.
                  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
                  • 10208 ☆ A M B ☆
                  • 1,780 Posts
                  Quote from: BobRay at Dec 31, 2012, 10:05 PM
                  I've been told that the MODX guys have modified LogPageNotFound for modx.com to automatically add rewrites to .htaccess. I've meant to do that, but haven't had time. AFAIK, they haven't released it.

                  Interesting...

                  How will it know what to rewrite to?
                    Frogabog- MODX Websites in Portland Oregon
                    "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                    Having server issues? These guys have MODX Hosting perfected - SkyToaster
                    • 3749
                    • 24,544 Posts
                    Quote from: frogabog at Dec 31, 2012, 11:07 PM
                    Quote from: BobRay at Dec 31, 2012, 10:05 PM
                    I've been told that the MODX guys have modified LogPageNotFound for modx.com to automatically add rewrites to .htaccess. I've meant to do that, but haven't had time. AFAIK, they haven't released it.

                    Interesting...

                    How will it know what to rewrite to?

                    Good question. I may not have that quite right. More likely, there's a CMP that lets you set the correct alias or ID and then does the rewrite, though it I were writing it, it would make some guesses first. wink
                      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