We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5158
    • 39 Posts
    Hello,
    Well I finished it. I simply modified a perl version I was using to accomidate a
    perl application installer. I’m testing it now against every concievable environment
    MODx could be installed into. I’m also simultateously helping Banzai debug some
    of the themes slated for the 9.5 MODx. I’ll post the diff’s against 9.2.1.

    Not bad for having been up for three days w/o sleep. tongue

    --Chris H.
      • 5158
      • 39 Posts
      Quote from: OpenGeek at May 21, 2006, 08:22 AM

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


      If the web root were /usr/local/www/modx/ then you would prepend /modx/ to the RewriteRule target...

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

      [NOTE: I corrected the reversed information as reported by sottwell, so it should be indicated properly now, even though my ignorance of how mod_alias works didn’t help much here... cool]
      Indeed. The second example would be correct without mod_alias. But with mod_alias
      in my situation it needs to be converted from:

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

      to:

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

      But I guess you already knew that. smiley
      I only mention it in the event that others have similar trouble(s) and need a working example.

      Thanks for taking the time.

      --Chris H.
        • 3642
        • 48 Posts
        I’m on a 1 and 1 server and have never been able to get the rewrite directives to work. Everything returns

        error 500: Internal Server Error

        Instead of fighting it, I have turned on friendly urls, changed the default extension to .htm and added the following to my .htaccess:

        CheckSpelling Off
        AddType application/x-httpd-parse .htm
        Action application/x-httpd-parse "/index.php?q="

        I actually found those lines in the phpCMS setup. Seems to work fairly well for my situation. Really don’t understand it well enough to know if there are any drawbacks. If there are, please let me know.
          Michael Henderson
          MODxCMS + Dreamhost P/S + BBEdit
          Safari + Mac OS X 10.8
          • 7030
          • 45 Posts
          @BlueRonin

          I tried that too for a site on a 1and1 server - no joy for me... sad - anyone else have a solution for 1and 1 servers? there tech suppport are a bunch of twits.
            Smoking is one of the leading causes of statistics.
            • 10559
            • 2 Posts
            MODx 0.9.2.1
            Hosted on 1&1 Professional Package

            in your .htaccess file

            summary:
            - comment out the zlib compression lines
            - add ’/’ in front of ’index.php?q=$1 [L,QSA]’

            #php_flag zlib.output_compression On
            #php_value zlib.output_compression_level 5
            
            # Rewrite directives here for SEF (Search Engine Friendly) URLs
            
            RewriteEngine On
            
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            
            # If your MODx installation is in a subdirectory, change the following line to match the physical
            # path to the "root" of the site as follows:
            # RewriteRule ^(.*)$ /path/to/subdirectory/index.php?q=$1 [L,QSA]
            
            RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
            
              • 7030
              • 45 Posts
              Hey gc,

              thanks! - thing is it worked for top level pages, but not for sub level pages i.e

              - index
              - section
              - section
              - - sub page (not working)

              I got a reply back from the monkeys and they say that because mod_proxy is not installed on their apache server, these rules wont work properly - could that be why this isnt working too?

              thanks for your help!


                Smoking is one of the leading causes of statistics.
                • 10559
                • 2 Posts
                Well, see if this example is what you’re thinking of.

                http://geekcompendium.net/
                • If you are using friendly alias paths, please see http://modxcms.com/forums/index.php/topic,1942.msg22795.html#msg22795 for the solution...
                    • 7030
                    • 45 Posts
                    doh! I had it commented out! - thanks for the help guys grin
                      Smoking is one of the leading causes of statistics.
                      • 20765
                      • 90 Posts
                      myfriendscallmebill Reply #20, 17 years, 9 months ago
                      I found that I had to comment out these two lines in the .htaccess file to make friendly URLs work:

                      # php_flag zlib.output_compression On
                      # php_value zlib.output_compression_level 5

                      This discussion is closed to further replies. Keep calm and carry on.