We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38357
    • 178 Posts
    Hello,
    I have moved a site to a new server and am now using a new site URL. The front page of the site comes up OK but all pages using the wayfinder menu give a 404 Not Found message. I have changed all the entries in the config.inc.php files.
    The URL appears correctly in the URL bar of the browser and the page exists and can be edited. When clicking VIEW from the manager after editing the same 404 message is returned. Cache has been completely cleared.

    Any thoughts?

    Thanks

      • 17301
      • 932 Posts
      Paste your error log here.
      (Manage > Reports > Error log)
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 3749
        • 24,544 Posts
        Do you have this in the head section of all Templates?

        <base href="[[++site_url]]" />


        In the Manager's Top Menu, do Manager -> Clear Cache -> refresh URIs.

        Also if you haven't already, delete all files in the core/cache directory. Sometimes you also have to clear the browser cache and cookies.

          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
          • 38357
          • 178 Posts
          Quote from: lkfranklin at Jul 12, 2016, 10:43 AM
          Paste your error log here.
          (Manage > Reports > Error log)
          Thanks LK. I have checked the error log and no errors are shown :-( I have also cleared it and tried to access the pages to see if any new errors are generated and they are not.

            • 38357
            • 178 Posts
            Quote from: BobRay at Jul 12, 2016, 05:29 PM
            Do you have this in the head section of all Templates?

            <base href="[[++site_url]]">


            In the Manager's Top Menu, do Manager -> Clear Cache -> refresh URIs.

            Also if you haven't already, delete all files in the core/cache directory. Sometimes you also have to clear the browser cache and cookies.

            Thanks Bob,
            <base href="[[++site_url]]">
            is included in all headers. Where is ++site_url set other than in config.inc.php ?

              • 17301
              • 932 Posts
              Does it load if you type in index.php?id=2
                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                • 38357
                • 178 Posts
                Quote from: lkfranklin at Jul 13, 2016, 03:21 AM
                Does it load if you type in index.php?id=2
                Thanks LK,
                That just takes me back to the home page again.
                  • 17301
                  • 932 Posts
                  Deffo not a wayfinder/package issue then. Most likely it is going to be your paths are incorrect somewhere in the config.inc.php.

                  Check $modx_base_url= '/'; especially as this one always throws me off if my modx is in a sub dir.

                    ■ email: [email protected] | ■ website: https://alienbuild.uk

                    The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                    • 38357
                    • 178 Posts
                    Quote from: lkfranklin at Jul 13, 2016, 04:06 AM
                    Deffo not a wayfinder/package issue then. Most likely it is going to be your paths are incorrect somewhere in the config.inc.php.

                    Check $modx_base_url= '/'; especially as this one always throws me off if my modx is in a sub dir.


                    $modx_base_url= '/'; is set correctly. I have another modx instance on the same server which works OK so I am able to directly compare the paths to make sure they are correct.

                    The URL's being generated are correct in the URL bar but I get '404 The page you are looking for cannot be found.' for every internal page regardless of how I try to access them - from the home page, from the manager or by typing the path directly into the browser using /index.php?id=10
                      • 38357
                      • 178 Posts
                      I have found the problem - friendly URL's. Turning them off has caused the pages to perform correctly. Transferring the site to an offline server just operating on my intranet must in some way cause them to become a problem.

                      Thanks for all the assistance.