We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9359
    • 128 Posts
    Hello everybody,
    after move my website to aruba server don't works anymore the friendly URL, th eproblem is too many redirects.
    I have YAMS installed and version 1.0.15 Modx Evo.

    My .htaccess:
    # Friendly URLs
    RewriteEngine On
    RewriteBase /
    # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]
    # Exclude /assets and /manager directories from rewrite rules
    RewriteRule ^(manager|assets) - [L]
    # Redirect from mydomain.com/rootname to mydomain.com/rootname/
    RewriteRule ^en$ en/ [R=301,L]
    # The Friendly URLs part
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


    Can anyone help me? thank you very much
      "Destiny is not a matter of chance, it's a matter of choice"
      • 9995
      • 1,613 Posts
      Do you think its .htaccess which gives the issue?
      Did you reset base paths.
        Evolution user, I like the back-end speed and simplicity smiley
        • 46886
        • 1,154 Posts
        I don't know much but this looks suspect to me:

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

        Do you have a part of your site with the link structure www.mysite.com/en/resource-alias? This looks doubled up to me.

        Here is a thread where our resident server expert friend (AMDBuilder) dropped some useful knowledge, just ignore the Discuss part:

        https://forums.modx.com/thread/89865/getting-started-htaccess-w-code
          • 9359
          • 128 Posts
          @fourroses666 I do not think that the problem is the .htaccess i have copied it by the config server tab of yams...
          how do i reset base path?

          @muan88 yes i have twoo languages: italian (default) and english. URL Italian is http://www.food-specialities.it
          URL en: http://www.food-specialities.it/en

          many thx to all
            "Destiny is not a matter of chance, it's a matter of choice"
            • 9995
            • 1,613 Posts
            reset in: tools / configuration / file manager and file browser tabs

            -- Page not found in config is set correct and published?

            [ed. note: fourroses666 last edited this post 11 years, 8 months ago.]
              Evolution user, I like the back-end speed and simplicity smiley
              • 9359
              • 128 Posts
              yes, is set right and published :-(
                "Destiny is not a matter of chance, it's a matter of choice"
                • 9995
                • 1,613 Posts
                Don't know whats wrong, without YAMS it does work?
                Or without friendly URLs?
                  Evolution user, I like the back-end speed and simplicity smiley
                  • 46886
                  • 1,154 Posts
                  How about pulling out this and seeing if it helps? It looks like an old fix that might not be needed anymore.

                  # Fix Apache internal dummy connections from breaking [(site_url)] cache
                  RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
                  RewriteRule .* - [F,L]
                    • 9359
                    • 128 Posts
                    Quote from: fourroses666 at Jan 14, 2015, 07:31 AM
                    Don't know whats wrong, without YAMS it does work?
                    Or without friendly URLs?

                    without FriendlyURL work's fine.
                      "Destiny is not a matter of chance, it's a matter of choice"
                      • 9359
                      • 128 Posts
                      Quote from: nuan88 at Jan 14, 2015, 10:13 AM
                      How about pulling out this and seeing if it helps? It looks like an old fix that might not be needed anymore.

                      # Fix Apache internal dummy connections from breaking [(site_url)] cache
                      RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
                      RewriteRule .* - [F,L]

                      I tried, but unfortunately does not help .. :-(
                        "Destiny is not a matter of chance, it's a matter of choice"