We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21122
    • 153 Posts
    Typically, they are exactly the same settings that I’m trying to use. But still not working.

    This is so annoying!

    Anything else that might be stopping them from working?
      • 4310
      • 2,310 Posts
      Probably need Aaron (onesmarthost) to chip in.
      • Hi Neil,

        Thanks for the email I managed to find this thread.

        This is the rule set which we use on Onesmarthost running ISAPI Rewrite V3.


        RewriteEngine On
        RewriteCompatibility2 On
        RepeatLimit 32
        RewriteBase

        # Block external access to the httpd.ini and httpd.parse.errors files
        RewriteRule ^/httpd(?:\.ini|\.parse\.errors).*$ / [NC,F,O]
        # Block external access to the Helper ISAPI Extension
        RewriteRule ^.*\.isrwhlp$ / [NC,F,O]

        RewriteRule ^/(?!(?:manager|assets)/)(.*)\.html(?:\?(.*))?$ /index.php?q=$1?2&$2: [NC,L,U]

        If this does not work, start out simple and drop this rule in:

        # Welcome to URL Rewriting! Below is an ACTIVE example rule:

        # RULE NAME: Redirect non-www website to www

        RewriteEngine on

        RewriteCond %{HTTPS} (on)?
        RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
        RewriteCond %{REQUEST_URI} (.+)
        RewriteRule .? http(?%1s)://www.%2%3 [R=301]

        Now try and access your website without the www. i.e. http://yourdomain.com if your ISAPI Rewrite is installed correctly the address bar will switch to http://www.yourdomain.com if it’s does not then there is a configuration issue with IIS and ISAPI.

        Let me know how you get on, i assume you are using IIS6, if it still does not work we could run a Logmein Remote Support Session and have a look on the server / computer itself.

        Thanks Aaron

          http://www.onesmarthost.co.uk
          UK MODX Hosting with love.
          • 21122
          • 153 Posts
          Hi Aaron,

          Thanks so much for getting back to me on this.

          Just a quick note to say that the site I’m currently building is not fully functional yet, and therefore has a domain on http://sitename.domain.co.uk. When it finally goes live, it’ll then become http://www.sitename.co.uk. We just keep it on our own servers until it goes live.

          Does this change what I should be using for now? (obviously I’ll need to alter it after the site goes live)

          Thanks again
          • Hi Neil,

            In that case just try the MODx rule set i posted for V3, if this does not work for you just give me a shout and we can run a remote session if you wish to troubleshoot this.

            I should be available tomorrow evening for a remote session.

            We can also continue on the thread between now and then smiley

            Thanks Aaron
              http://www.onesmarthost.co.uk
              UK MODX Hosting with love.
              • 21122
              • 153 Posts
              Well, I still can’t get it to work! I know I’m applying it in the right place, because I tried both scripts you provided and the second one added a ’www’ before my URL (meaning that it didn’t work!) so I’m kind of getting somewhere. Just can’t seem to get over the final hurdle!

              A remote session would be excellent. I presume you have the software available? If not, I can probably sort something out.

              Anyway, thanks again for the help!
              • Hi Neil

                Thats interesting that the second one added www. before the URL this is exactly what it should do and if this was what happened then ISAPI Rewrite works on your server,

                I have the details for Logmein iT Reach, i will email you my contact details and we can setup a time tomorrow to have a look and then post back to the forum with our findings.

                Thanks Aaron

                  http://www.onesmarthost.co.uk
                  UK MODX Hosting with love.
                  • 5160
                  • 118 Posts
                  Re: SEO friendly URLs with IIS
                  Works perfectly for me on Windows 2003/IIS6/Plesk with 45 day trial of ISAPI_Rewrite 3 installed. Thanks!

                  Update - Form Post data goes missing when FURLs are enabled so the login and contact forms don’t work. Can’t figure a way to resolve it yet...
                    • 16157
                    • 1 Posts
                    I tried this http://iirf.codeplex.com/ on IIS. Looks that works.
                      • 9689
                      • 5 Posts
                      Quote from: chris.dempsey78 at Mar 02, 2010, 08:49 PM

                      Re: SEO friendly URLs with IIS
                      Update - Form Post data goes missing when FURLs are enabled so the login and contact forms don’t work. Can’t figure a way to resolve it yet...

                      i got the same issue exactly...but still no clue how to solve it sad