We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38543
    • 41 Posts
    Try It and if any trouble, we'll help you.
      • 41958
      • 65 Posts
      Thanks, sounds great.
        • 41958
        • 65 Posts
        I have modx in a sub folder for testing, would that be a problem with Babel?

        What tut. are you guys following for this? Is it this:
        http://designfromwithin.com/blog-webdesign-development/2012/01/12/modx-multilingual-setting-up-babel-and-have-a-website-with-multible-languages/?quip_thread=article-b2-36&quip_parent=126

        I have red on Babel's official website that there is more SEO approach. What method do you guys follow?
        He also sas that a lot would change when the next release comes out. So it makes me wonder if it is at all a good idea to use Babel at the current state or wait until the big fix comes?
        Many thanks,
        Csaba
          • 38543
          • 41 Posts
          Hi, I think that SEO Approach is the good one.

          I really recommand you to test Modx and Babel in a root directory. You'll avoid few problem, not only with babel.
          • Well, I used babel + modx in a subfolder some months ago, so I don't remember very well the situation...
            anyway I had some problems with friendly url not correctly redirected, with the rich editor file manager and with the integration between the getaway plugin and htaccess file.

            Playing with it, particulary on htaccess file, I solved some problems, anyway installing modx in the root folder I had no problem with babel!

            I followed this page:
            http://www.multilingual-modx.com/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html

            but it seems very similar to the page you linked in your post.

            Actually you are right the next versione 2.3 should be really great, but I don't know when it will be released...
            so I think you can give a chance to 2.2.5 smiley

              TilliLab | MODX Ambassador
              website
              • 41958
              • 65 Posts
              Many thanks for the replys. Too bad I installed modx in a sub folder since I would like to keep my website up and running whyle testing modx. To my understanding it will have problems on the htaccess side when using babel.
                • 41958
                • 65 Posts
                I had to put modx in a subfolder like so : domain.com/sub/modx/
                I get the too many redirects message, but I had to put in a sub folder like so.
                Can someone suggest a way to fix the problem without putting modx in the root?
                Thx
                  • 38543
                  • 41 Posts
                  But you need subfolder only for test of for production ? If only for test, I really recommand your to install a webserver on your computer and put modx in root folder.

                  If not, please post exact message and problem you have.
                    • 41958
                    • 65 Posts
                    I am keeping modx in sub folder for testing but for a reason. This way I van have my current website up and when I am done I do not have to move modx and database to server. But I understand that it is harder this way. Still if anyone can help, please.
                    Here is my config:

                    .htaccess in sub folder
                    RewriteEngine On
                    RewriteBase /munkak/modx/

                    # The Friendly URLs part
                    # redirect all requests to /en/favicon.ico
                    # to /favicon.ico
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteRule ^(en|hu)/favicon.ico$ favicon.ico [L,QSA]

                    # redirect all requests to /hu/assets* to /assets*
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteRule ^(en|hu)/assets(.*)$ assets$2 [L,QSA]

                    # redirect all other requests to /en/*
                    # to index.php and set the cultureKey parameter
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteRule ^(en|hu)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA]

                    My site is at:
                    http://mydomain.com/munkak/modx/

                    and I have two languages: web: English (default) and Magyar (Hungarian)
                    English is working fine but when I try to swith to Hu it sas:
                    in firefox
                    503 Error
                    Page not found
                    The page you requested was not found.

                    safari: too many redirects

                    in my root .htaccess
                    DirectoryIndex index.php index.html index.htm
                    Options -Indexes

                    RewriteOptions MaxRedirects=10

                    THx
                      • 39583
                      • 103 Posts
                      I have exactly the same problem as openstep.
                      The main language works fine but the second language results in a 503 error.
                      Using the same htaccess setup as above.

                      Does anyone know how to fix this?
                        --
                        André