We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40122
    • 330 Posts
    I've just set up a new site (currently using hosts file URL so cannot show anyone).

    All works well except for one page, the Suppliers page.

    If I click the nav link to this page it appears fine, eg:

    mysite.com/suppliers/


    But if I click any other links on this page I get a 404 as the URL says:

    mysite.com/suppliers/aboutus.html


    There is literally nothing different about this page except the alias, name and text content. Same menu level and template as all other pages.

    Of course I have tried clearing ModX and Browser caches to no effect. Changing the alias doesnt help either.

    Would anyone know what I can do?

    Thanks

    This question has been answered by BobRay. See the first response.

      • 3749
      • 24,544 Posts
      Is there maybe a rewrite rule in .htaccess that would affect this?

      Are you running Redirector?

        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
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Usually resources that are containers (have children) have a file extension of /, so that by themselves they would be domain.com/menutitle/, while their children would be domain.com/menutitle/child.html

        Do you by any chance have a directory using the same name in your webroot, such as www/suppliers/?
          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
          • 40122
          • 330 Posts
          Quote from: sottwell at Mar 05, 2015, 01:08 AM
          Usually resources that are containers (have children) have a file extension of /, so that by themselves they would be domain.com/menutitle/, while their children would be domain.com/menutitle/child.html

          Do you by any chance have a directory using the same name in your webroot, such as www/suppliers/?

          Thanks for the reply.

          No there is no file or directory called suppliers and its doesnt seem to make any difference if I change the alias to something else. However, this resource is a parent resource.
            • 40122
            • 330 Posts
            Quote from: BobRay at Mar 04, 2015, 10:26 PM
            Is there maybe a rewrite rule in .htaccess that would affect this?

            Are you running Redirector?


            No I'm not running Redirector.

            .htaccess just has the following:

            RewriteEngine On
            RewriteBase /
            
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
            • discuss.answer
              • 3749
              • 24,544 Posts
              Let's back up. Do you have this tag in the head section of all templates?

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


              If you have multiple front-end contexts, it should be:

              <base href="[[!++site_url]]" /> 
                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
                • 40122
                • 330 Posts
                Quote from: BobRay at Mar 05, 2015, 05:35 PM
                Let's back up. Do you have this tag in the head section of all templates?

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


                If you have multiple front-end contexts, it should be:

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

                Sorry for the late reply! Thanks Bob!