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

    A client of mine has asked me to install modx on windows machine running IIS 6. Got everything working apart from the SEO Strict URLs plugin. Anyone any idea if it will/should work on IIS 6?

    I can get to the SEO friendly page such as /mypage.html but when the plugin is enabled, I get a page not found error.

    I’m using the IISRewrite module, which basically emulates the Apache rewrite module, which means I can get the FURLs working.

    Environment is:
    Mysql 5.0.22
    Php 5.2.3
    IIS 6
    MODx 0.9.6

    Any ideas would be greatly appreciated. I really really really want this module to work. Works so beautifully on my linux machines!

    EDIT:

    The error in the IIS log file is 404 0 2. At http://support.microsoft.com/kb/318380 it’s said that this means: Web service extension lockdown policy prevents this request.

    Does that help anyone troubleshoot this issue? Does anyone know if that’s significant/what it means/how to over come it?
    • Hi

      I can confirm SEO urls and ISAPI Rewrite works fine with MODx http://www.onesmarthost.co.uk is a live example laugh

      For me i enabled custom 404 errors in IIS to /index.php

      and in the wwwroot i created a file called httpd.ini and added the following lines:


      [ISAPI_Rewrite]

      RepeatLimit 32

      # Block external access to the httpd.ini and httpd.parse.errors files
      RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]

      # Block external access to the Helper ISAPI Extension
      RewriteRule .*\.isrwhlp / [F,I,O]

      #RewriteEngine On

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


      If you let me know what rewrite rules you have etc Im sure I will be able to help.
        http://www.onesmarthost.co.uk
        UK MODX Hosting with love.
        • 20751
        • 122 Posts
        Hi

        Thanks for helping me out! I’m using the rewrite module found at: http://www.qwerksoft.com/products/iisrewrite/ is that the same one you’re using? I took my lead from this thread to first of all get furls working :

        http://modxcms.com/forums/index.php?topic=3119.0

        That thread mentions potentially damaging se ranks using the 404 method you described. Are you of the same opinion?

        The ISS Rewrite module configuration file has the following:

        RewriteEngine On
        Rewrite Rule ^/manager/.* - [L]
        Rewrite Rule ^/assets/.* - [L]
        RewriteRule /(.*).html /index.php?q=$1

        Thanks for any help you can give me. Breathing a sigh of relief knowing that at least someone has this working!



          • 20751
          • 122 Posts
          @awardle

          Sorry, just re-reading your thread and I think you’ve misunderstood what I’m getting at here. I’m trying to get the SEO Strict URLS plugin to work. I’ve got seo friendly urls working, it’s the SEO Strict URLS plugin that isn’t working.

          http://modxcms.com/SEO-Strict-URLs-1335.html

          If you had it enabled, it would make sure that you could only get to each of your documents via one url. For example if your /News.html page can be accessed via:

          http://www.onesmarthost.co.uk/News.html
          http://www.onesmarthost.co.uk/News/
          http://www.onesmarthost.co.uk/News

          And through the same methods using the document id for News

          This is bad news as far as search engines are concerned becuase it could see all of those access points to your news page as duplicate content. The SEO strict URLS plugin ensures that each document can only be accessed via pagename.html by redirecting all other methods of accessing the same document to that page using 301 redirects.

          http://www.onesmarthost.co.uk/News.html would redirect to http://www.onesmarthost.co.uk/News.html
          http://www.onesmarthost.co.uk/News/ would redirect to http://www.onesmarthost.co.uk/News.html
          http://www.onesmarthost.co.uk/News would redirect to http://www.onesmarthost.co.uk/News.html

          So, in summary . . . got FURLs working. Just can’t get SEO Strict URLS plugin to work. When I enable it I just get a page not found error.

          Anyone got this working?
          • Ah I see,

            SEO Strict looks pretty good, I will give it a go and see if I can get any joy from it.

            Thanks
            Aaron
              http://www.onesmarthost.co.uk
              UK MODX Hosting with love.
              • 20751
              • 122 Posts
              Thanks aaron. I appreciate it!
                • 13993
                • 100 Posts
                Are you getting errors for "all" page calls or just ones that would get redirected to the proper one?
                  • 20751
                  • 122 Posts
                  @JeremyL

                  As soon as I enable the plugin, all of my search engine friendly pages can’t be found. I can’t get to my pages using index.php?id=X or through any other means. The moment I disable it, everything is fine again.

                  Something else interesting . . . when you try to view the site start page (the index page) through either ’/’ or ’/index.html’ IE just hangs and firefox gives this message:

                  The page isn’t redirecting properly
                  Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

                  • Ive just tried it aswell on my server (IIS6) and the page does not load at all when the plugin is enabled it’s as if the SEO Script plugin is trying to use Apache Rewrite rules.

                    :(
                      http://www.onesmarthost.co.uk
                      UK MODX Hosting with love.
                      • 20751
                      • 122 Posts
                      Did I read your post right? It doesn’t work even if the plugin is ’disabled’? I don’t think the plugin uses apache based redirects, but I think you’re right in that it’s some sort of redirection issue that IIS doesn’t appear to like. Banging my head against a brick wall here!