We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36532
    • 8 Posts
    Hello,

    I would like to report a bug. When MOD is not at the root, it seems like there is a problem with paths.

    Locally I have installed MODx in localhost/modx_conradk/.

    I have created a resource called "Blog" with alias "blog". Friendly URLs are enabled in the htaccess and MODx system settings.

    This is the output of localhost/conradk_modx/blog/:
    Not Found

    The requested URL /index.php was not found on this server.

    Apache/2.2.17 (Ubuntu) Server at localhost Port 80

    Seems like MODx is using an asbsolute path to /index.php where it should be /conradk_modx/index.php.

    While we're on that, I have created another thread on this forum. About .html extensions on friendly URLs. Could anyone respond if you know the answer ?
    I honestly find it weird to see that MODx has partners that donate hundreds or thousands of dollars and there is no support by MODx employees on the forum sad

    Thanks for reading,
    Best regards,
    CK [ed. note: conradk last edited this post 15 years, 1 month ago.]
      • 22303 MODX Staff
      • 10,725 Posts
      The rewrite rules need to be modified if you are in a subdirectory for friendly URLs. Either set RewriteBase to the subdirectory:

      RewriteBase /conradk_modx/


      OR include the subdirectory in the rewrite rule:

      RewriteRule ^(.*)$ /conradk_modx/index.php?q=$1 [L,QSA]



      Which thread about .html extensions on friendly URLs are you referring to? The community provides support in these forums, and in general folks are good about responding to questions, but perhaps your post got overlooked. It happens.
        • 33968
        • 863 Posts
        There you go, you got a response from one of the core developers in less than half an hour.

        That's better than any paid support I've experienced wink
          • 36532
          • 8 Posts
          Thanks a lot for the Rewrite tip. And sorry for calling it a bug :/

          The thread I'm talking about is 69764. It was weird, I kind off got stuck out of my admin account. In the DB, my account wasn't blocked. I tried to follow the tutorial at thread 15508. But I just couldn't get in. And there were no errors shown. I might have misconfigured something. Who knows xD

          I also would like to know whether there is a possibility to remove the .html from friendly URLs.

          Thanks for the quick response !

          Btw, Lucas, I am quite pleased that Open Geek replied this quickly smiley It's just that I got a little disturbed that no one was replying in two days and that I was stuck out of the admin account. Sorry 'bout that.

          I will try to give something back (video tutorials, help on this forum, etc) when I get a little more comfortable with MODx.

          Btw, good job on the admin interface, if any of the designers/devs is reading this ! Compared to Drupal or even Wordpress, it looks 1000 times better IMO.