We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27716
    • 126 Posts
    Im publishing documents as children but they are not ending up in the sub folder in my urls.

    For example, a child document on my domain is apperaing in the root

    example.com/child_document.html

    How do i correct this to

    example.com/folder/child_document.html

      • 27716
      • 126 Posts
      Hi,

      Thanks for this advice!

      It worked.

      Now I have the problem that when I Nivigate in to a site section or folder, and navigate out, The gets stuck in that folder!

      Would that be an error in my .htacces?

      Any ideas?

        • 16034
        • 107 Posts
        I think you need to provide some more info like:

        What’s your document structure and from which doc to which doc do you navigate?

        I you think it might be your .htaccess, post the contents here as well.
          MODx snippet-glossary 101:
          Ditto = Content Lister -- Wayfinder == Menu Builder -- Jot = Comment Control
          • 10487 MODX Staff
          • 1,535 Posts
          Also, do you have a base tag in your template? You’ll typically need a base tag so that relative URLs in your page are referenced from the site root rather than the sub-folder, especially when using Friendly Alias Paths.

          If you haven’t got a base tag, then place the following inside the head section of the template:
          <base href="[(site_url)]" />
            Garry Nutting
            Senior Developer
            MODX, LLC

            Email: [email protected]
            Twitter: @garryn
            Web: modx.com
            • 27716
            • 126 Posts
            Hi Guys,

            Beautiful!

            The base code in the template seems to have done the job.

            Stuart