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

    this morning I upgraded my modx installation from 0.9.6.2 to 0.9.6.3.
    I’m using Lighttpd and the url.rewrite-once stuff for friendly URLs from:
    http://wiki.modxcms.com/index.php/Friendly_URLs_on_lighttpd

    After the update the frontpage of the site stopped working and just goes 404,
    other pages work normal, it’s just the default startpage.

    Then I switched the rewrite config to the one with mod_magnet and lua. That
    works so far, but at some pages (like with jot or maxigallery) it creates pages like
    foobar.html?page=2 that give me error 404 again...

    So I tried a new install on an other subdomain,to see if maybe something went wrong with the update.
    The new install also gives me the 404 error on the frontpage with the url.rewrite-once friendly URLs...

    Here you can see the fresh modx install: http://beta.vom-stausee.de this is now running with friendly URLs
    enabled in the manager, and the url.rewrite-once stuff in the vhost config,everything else should be default.

    So if someone knows a solution for either make the url.rewrite-once working without the error 404 frontpage
    or
    to make the mod_magnet lua solution to work with URLs like foobar.html?page=2 that would be really really nice,
    because i’m somewhat lost right now laugh

    Thank you very much
      • 19217
      • 2 Posts
      Hey,

      I just found out that, if I change the file manager/includes/document.parser.class.inc.php
      back to the one from 0.9.6.2 my frontpage error 404 goes away! So I’m using that old file now smiley
      Just FYI

      Bye
        • 15469
        • 64 Posts
        I recently ran into the same problem using 0.9.6.3.
        I found out that all URLs are being built the right way, except the the URL "/".

        So I fixed my RegEx in lighttpd.conf like those that follow:
        url.rewrite-once = (    "^/$" => "index.php",
                                "^/(assets|manager)/(.*)$" => "/$1/$2",
                                "^/(?!index(?:-ajax)?\.php)(.*)\?(.*)$" => "/index.php?q=$1&$2",
                                "^/(?!index(?:-ajax)?\.php)(.*)$" => "/index.php?q=$1"
                           )
        


        As you can see I fixed the case of accessing the root directory with "/" like http://www.example.com/.

        Please tell me immediately if there´s something wrong with my config... otherwise someone (me? wink ) should fix the Wiki (http://wiki.modxcms.com/index.php/Friendly_URLs_on_lighttpd)

        Greetings from Germany
          $cd /pub
          $more beer
          • 15469
          • 64 Posts
          An error notification on my own post...
          Can´t get friendly URLs get to work properly on Lighttpd 1.4.13, Debian.

          I´ve configured several hosts, one works just perfectly.
          Output of "curl":

          curl -I www.myurl.de
          HTTP/1.1 302 Found
          ...
          Location: http://www.myurl.de/startseite.html

          This is what MODx should point the starting page at.

          An other host just points at my 404-page, even if MODx is configured the same as my above configuration.

          I can´t figure out what goes wrong or, more worse, what I DO wrong here...

          Somebody ran into similar things?

          Greetings from Germany
            $cd /pub
            $more beer