We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49693
    • 8 Posts
    Hi Guys (it has been about 2 years since I have been here - so, "hi")

    I am using modx revo version 2.3.2.

    I want to use friendly URL's, as follows:

    www.domain.com
    www.domain.com/content
    www.domain.com/content/child

    Here is what I have done:

    1. I have changed the name ht.access to .htaccess and uploaded this to the root of the server
    2. In System Settings fro Friendly URL's I have updated the settings as follows:
    -Automatically generate alias: Yes
    -Container Suffix: [deleted the "/"]
    -Use Friendly URLs: Yes
    -Use Friendly Alias Path: Yes
    3. In Content/Content Types/HTML I have deleted the file extension .html
    4. I have edited my template to include: <base href="[[!++site_url]]" />
    5. cache deleted
    6. I have created all the resources with content, eg:
    -home
    -about
    --team [child]
    --services [child]
    -contact

    The problem:

    Whilst "www.domain.com/content" works fine, when I try to go to url "www.domain.com/content/child" the css on the child page is broken and I just get plain html. The url still reads: www.domain.com/content/child

    Solution? Don't know!! Help.

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

      • 3749
      • 24,544 Posts
      What is the tag in the template that loads the CSS file?

      What do you see for that tag when you do a "View Source" on the page?

        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
        • 49693
        • 8 Posts
        This is what is in the header chunk for css: assets/css/style.css

        I have rolled back to modx revo version 2.3.1 but still have the same issue.

        Either no css, or the page is missing and the home page is displayed.

        I have spent three days on this 1 issue without success and it is now a major problem.

        • discuss.answer
          • 49693
          • 8 Posts
          I changed the path from:

          assets/css/style.css

          to:

          /assets/css/style.css

          Inserting the "/" has appeared to solved the problem. [ed. note: mattyrobinson last edited this post 11 years, 8 months ago.]
            • 3749
            • 24,544 Posts
            I'm glad you got it sorted. smiley

            I wonder if this path would have fixed it:

            [[++assets_url]]css/style.css


              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