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

    I configured everything for the SEO Approch using this tutorial : http://www.multilingual-modx.com/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html. But not all the url are working...

    My site is now in a local apache server inside a directory : www/mysite/ (I renamed the real name of the site for the forum)
    Two languages : fr (context web), de (context de)


    http://localhost/mysite/ -> redirecting to http://localhost/mysite/fr/ but after message : "The page is not redirecting properly". It seem to be a loop ?
    http://localhost/mysite/fr/ -> not working with message "The page is not redirecting properly"
    http://localhost/mysite/fr/index.php -> working well
    http://localhost/mysite/index.php -> working well
    http://localhost/mysite/de/index.php -> 503 Error Page not found

    Using one of above link working for th index.php file, I try to access other page clicking on the displayed menu. This is the link : http://localhost/mysite/fr/aviation.html => not working again "The page is not redirecting properly" !

    The rewrite rule for the css is working well.

    My Babel Plugin :
    <?php
    if($modx->context->get('key') != "mgr"){
    /* grab the current language from the cultureKey request var /
    switch ($_REQUEST['cultureKey']) {
    case 'de':
    / switch the context /
    $modx->switchContext('de');
    break;
    default:
    / Set the default context here /
    $modx->switchContext('web');
    break;
    }
    / unset GET var to avoid
    * appending cultureKey=xy to URLs by other components */
    unset($_GET['cultureKey']);
    }
    


    My .htaccess :
    RewriteCond %{HTTP:Accept-Language} !^de [NC]
    RewriteRule ^$ fr/ [R=301,L]
    RewriteRule ^$ de/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(fr|de)/favicon.ico$ favicon.ico [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(fr|de)/assets(.*)$ assets$2 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(fr|de)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA]
    


    Attached, printscreen of system configuration and log of the htaccess (with RewriteLogLevel 9)

    Do I need to configure the http host in htaccess ?

    Thanks for your help ! I spend few hour and can't find any solution !
    [ed. note: laurentw last edited this post 12 years ago.]
      • 38543
      • 41 Posts
      Finally, I did that to solve the problem :

      - move the site a the root of my local webserver
      - copy new version of Modx modx-2.2.2-pl
      - setup the update
      - clean cache
      - adapt all the path

      And now it's working well !

      So I really think that there is a problem to use SEO BABEL Method in a subdirectory website.
        • 2042
        • 20 Posts
        Hi,
        i do have the same issues! Are there any solutions so far?

        Kind regards
        • Hi! Have you solved it?

          I have the same problem too...

          I have other versions of Babel installed in the root of server and everything works fine,

          but with this website installed in a sub-folder I have the error "The page is not redirecting properly"

          My versions are:

          Modx 2.2.2
          babel 2.2.5

          By the way an old site of mine was installed in a sub-folder, with modx 2.1.5 and worked fine,
          so I also tried to use the same configuration but it doens't work with modx 2.2.2

          I followed the procedure of: http://www.multilingual-modx.com/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html ,
          same context, same htaccess and so on.


            TilliLab | MODX Ambassador
            website
            • 2042
            • 20 Posts
            Nope, just by installing modx in the root directory as you also did... hope this bug will be fixed soon...
            • mm...
              doing some further test: I removed Babel, deactivated all the plugins, restored the original .htaccess but...

              it doesn't work even now...
              well, I think I'll definetely move it to the root folder smiley

                TilliLab | MODX Ambassador
                website
                • 2042
                • 20 Posts
                yeah i also tried several hours to get rid of this problem and nothing... so we have to wait until the m8y babel god wil fix the problem wink

                  • 41958
                  • 65 Posts
                  hi,

                  I am just new to modx and reading these makes me wonder if there is a proper method for a multi lang. website?
                  Babel just does not seem to be a good one, at least not how it works currently.
                    • 38543
                    • 41 Posts
                    Hi,

                    If you install the website in the root directory, Babel is really easy un good for multilingual use ! I use now Modx Revolution and Babel since 1 year. I'm fully happy and all is working easy and well.
                    • I agree with laurentw,
                      I found some problems with installation in subfolder, but with installation in the root no problem!
                      I'm using Revo and Babel with several sites and I can say it works very well,
                      also my customers like the way they can manage multilingual pages.

                        TilliLab | MODX Ambassador
                        website