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

    First I’d like to say many thanks indeed for a great resource. I’ve found many solutions here before now. I will start to repay that.

    My current issue is as a result of adding a simple blog to my site by copying the one from the standard installation. It works pretty well apart from the pagination.

    When I click on the link for page 2 (or Next) the URL is www.mydomain.com/blog.htm?start=2 which results in a page not found. If I turn friendly URLs off it works but that is not a long-term solution.

    I am running Evo 1.02 on IIS6. I have Friendly URLS on with no prefix, yes to aliases and no to path.
    My blog page is not cached and the snippet calls are not cached. I have tried clearing caches and restarting IIS but to no avail.

    I wondered if the problem is due to my rewrite.dll settings? Here’s my rewrite.ini:


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


    As you can probably tell I’ve spent some time trawling these board for the answer to this and failed so far. GI’d be very grateful for any ofurther suggestions.

    Thanks,

    Tony.
      • 9085
      • 630 Posts
      Quote from: Fat at Jun 17, 2010, 03:48 AM


      RewriteRule /(.*).html /index.php?q=$1



      you have no [QSA] in the end of your rule.

      Standart .htaccess rule:
      # For Friendly URLs
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
        Правильно заданный вопрос повышает вероятность получения нужного ответа.
        Что-то не работает? Загляните в лог ошибок!
        Есть проблема? "Локализуйте" её!
        Ответы на большинство вопросов по MODx | MODx RTFM | API Evo Revo | галопом по Европам Азиям smiley wikibooks(ru) Ditto(en) | Wayfinder e-book | Заметки и о MODx
        • 16278
        • 928 Posts
        Are you using .htm or .html as the suffix for Friendly URL? The problem page you quoted was blog.htm, but the rewrite rule is for suffix .html
        smiley KP
          • 9489
          • 4 Posts
          Thanks for the replies.

          It is true that I am using .htm as the suffix but updating the .ini made no difference.

          I also tried adding [L,QSA] but again with no effect.

          Cheers,

          Tony.
            • 9085
            • 630 Posts
            try to use standart .htaccess rewrite rule (my prev post)
            Is it work?
              Правильно заданный вопрос повышает вероятность получения нужного ответа.
              Что-то не работает? Загляните в лог ошибок!
              Есть проблема? "Локализуйте" её!
              Ответы на большинство вопросов по MODx | MODx RTFM | API Evo Revo | галопом по Европам Азиям smiley wikibooks(ru) Ditto(en) | Wayfinder e-book | Заметки и о MODx
              • 9489
              • 4 Posts
              Hi

              Haven’t tried that yet. This is an IIS 6 server if that makes a difference.

              A new symptom: When using tags, I get the same error:

              http://www.mydomain.com/blog.htm?tags=textofmytag&start=0
              This gives a page not found error too.

              Thanks,

              Tony.