We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24280
    • 3 Posts
    Greetings all, I’m diving into MODx for the first time tonight... I have no idea what this problem would even be called, so please bear with me if this has been answered somewhere before.

    I’ve got it working to a point, but I can’t fix this problem... when I post a new blog entry, it shows up just fine; when I click "read more" or the permanent link, or the comments link, the same page reloads but with an extra level thrown in front of the page I’m on.

    Like this:

    step 1, the URL looks like this:
    mydomain.com/modx/index

    step 2, I click the "read more" link, the page reloads without the content I’m trying to get to, and the URL looks like this:
    mydomain.com/modx/index/index/article-012345678

    step 3, if I click another link from that page, say the comments link, the page reloads without the content I’m trying to get to and the URL looks like this:
    mydomain.com/modx/index/index/index/article-012345678

    I don’t know where to begin looking for how to solve this problem or how to fix it. I’ve basically just copy-pasted the code out of the default "Blog" page and changed a couple of the parameters to get to the right content, but as far as I know I haven’t changed anything critical.

    Any help is appreciated... I’m very enthusiastic about what I will be able to do with Modx, but I need a bit of help over the learning curve.

    Thanks much.
      • 33372
      • 1,611 Posts
      It sounds to me as if you just need to add "modx/" to the rewrite rule in your .htaccess file.
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn't very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 22303 MODX Staff
        • 10,725 Posts
        As usual, you are missing the BASE tag in your template. This is required if using Friendly Alias Paths, and recommended on all templates, so if your error page gets pulled up in a non-existent virtual directory, the paths to CSS and links are still correct. Try going to yoursite.tld/foo/bar (assuming that doesn’t exist), and if you don’t have a BASE tag, you probably won’t see the proper styling or the proper links to pages...