We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23491 ☆ A M B ☆
    • 1,056 Posts
    I found a small bug w/ SEO Strict...

    I have alias_path on, and I have one page 3 containers deep called "my_page" which is actually a container... (so, /dir1/dir2/my_page/)

    then, in the root of my site, I have another page called "my_page" but it is not a container (so, /my_page.html is what I’d expect...)
    only, I am getting /my_page/ when in reality, the root "my_page" is not a container...

    I’ve even tried forcing "Append Extension" via seoOverride, but still no go...

    I wonder if the alias lookup might not take alias_path into account, or at least not correctly huh
      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.
      • 22770
      • 285 Posts
      I’ve come across something which I think is a bug in SEO Strict URLs (although it may just be the way I’m using it). Either way, any advice would be useful.

      I have two containers in my site, the aliases of which are:

      my-container

      and

      my-container-plus

      (Not, they’re not really called that, but that’s the pattern.)

      When I use Wayfinder to generate a menu, the URL for the first container is:

      my-site/my-container/

      Which is fine. But the URL for the second container comes up as

      my-site/my-container/-plus/

      Which obviously doesn’t take users to the page. (If I disable SEO Strict URLs the problem disappears, so it must be involved in the problem.) Any ideas how I can stop this happening? (I’ve temporarily renamed the alias of the second container to plus-my-container, which avoids the problem, but it isn’t a good permanent solution as I can’t expect my users to do this when they’re adding to the site.)
        • 27376
        • 576 Posts
        Quote from: PatrickSamphire at Oct 12, 2007, 06:31 AM

        But the URL for the second container comes up as

        my-site/my-container/-plus/

        Which obviously doesn’t take users to the page. (If I disable SEO Strict URLs the problem disappears, so it must be involved in the problem.) Any ideas how I can stop this happening? (I’ve temporarily renamed the alias of the second container to plus-my-container, which avoids the problem, but it isn’t a good permanent solution as I can’t expect my users to do this when they’re adding to the site.)
        My best guess is that you’re not using a FURL suffix and have also not set SEO to recognize folders. The problem your running into is similar aliases which will confuse the REGEX used in this plugin.
          • 22770
          • 285 Posts
          Right on the money! Thank you. I hadn’t set a FURL suffix. smiley
            • 19033
            • 892 Posts
            Dear all, and ApoXX, JeremyL !

            I thank very much this useful plugin.
            Now, I am introducing MODx CMS and snippets, plugin etc. in Japanese forum.

            I have a trouble with SEO Strict URLs plugin. So I contribute to this forum.
            My trouble may be same as the following, but I am not sure about it.
            http://modxcms.com/forums/index.php/topic,12452.msg116749.html#msg116749

            I created test page. Please look this.
            http://www.liolion.net/g-map.html

            This document is folder. (This has marker documents of Googlemap).
            But I want to show as normal document this.
            So I choosed "Append Extension" option of SEO Strict URLs.
            URL is OK. Address-bar of browser shows URL correctly.

            But in this case, Jot do not work.
            I looked HTML source.
            <form action="xxxxx"> of Jot is like the following.
            <form method="post" action="/g-map/#xxxxxxx" class="jot-form">


            I think that it is cause.
            URL of "form action" should be "/g-map.html#xxxxxxx", isn’t it?? I think.

            This case also is caused with eForm.

            Can I solve this trouble?

            Sincerely yours,
            MEGU
              • 23050
              • 1,842 Posts
              Hello smiley

              I’m looking for someone who runs SEO Strict URLs on a large site (1.500 docs) with about 3.000 visitors / day.

              I have heavy CPU load when SEO Strict URL runs (no CPU load when desactivated).

              No one talks about it... Am I alone in that case ?

              Thanks smiley
                • 36592
                • 970 Posts
                Hi! Perrine.
                In the plugin settings, try changing the "Rewrite containers as folders" parameter value to "0".
                  • 23050
                  • 1,842 Posts
                  Aaaaah !!!! kiss kiss kiss kiss kiss Fantastic !

                  Thank you very much ! It’s ok wink
                    • 36592
                    • 970 Posts
                    Recently another Japanese forum member claimed the same thing.
                    He has about 4,000 documents in his MODx installation.

                    I do not know much about PHP, but I looked into the source code.
                    And I found there was a ’foreach’ loop which seemed to loop all the documents.
                    This option make skip that foreach loop.

                    I hope I could think of much better code, but I am just a begginer of PHP... undecided
                    I wish anyone else could.
                      • 23050
                      • 1,842 Posts
                      Yes would be nice but I don’t neither php :/