We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4310
    • 2,310 Posts
    Here’s my .htaccess file from an IIS6 Isapi Rewrite server :
    RewriteEngine On
    RewriteCompatibility2 On
    RepeatLimit 32
    RewriteBase /modx
    
    RewriteRule ^/httpd(?:\.ini|\.parse\.errors).*$ / [NC,F,O]
    RewriteRule ^.*\.isrwhlp$ / [NC,F,O]
    
    RewriteRule ^/(?!(?:manager|assets)/)(.*)\.html(?:\?(.*))?$ /index.php?q=$1?2&$2: [NC,L,U]
    
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www\.your-domain\.co\.uk [NC]
    RewriteRule (.*) http://www.your-domain.co.uk/$1 [R=301,L] 
    RewriteRule ^index.html$ / [NC,R=301]
      • 30176
      • 99 Posts
      Thanks Dave,
      I attempted to use your code and I have not given up but cannot get it to work at this point yet. I did go back and use the following that I have been able to get to work.
      RewriteEngine on
      #RewriteBase /modx
      RewriteRule ^/modx/manager/.* - [L]
      RewriteRule ^/modx/assets/.* - [L]
      RewriteRule ^/modx/(.*).html /modx/index.php?q=$1 [L,QSA]


      For other newbees like me, this installation resided in the /modx directory.

      I still am going to go back and test bits of your code as I am getting better at understanding the language there.

      One key thing that I found is that I need to uncheck "cachable" on the pages that deliver dynamic links. Otherwise pages will not be delivered.

      Thank you again!! Thomas
        "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
        -J.R.R. Tolkien from The Lord of the Rings