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

    for the past week I have been trying every resource I can find on creating a multilingual site with MODX 2.6.5. But nothing really seems to work and I don't know where to look anymore. I've tried most of posts with suggestions on this forum, a couple of youtube videos (even one in Russian which I don't even understand) but just cannot get this to work. I would like to have the following setup:

    domain.tld/ -> for the main site
    domain.tld/nl/ -> for a Dutch version of the website

    With langrouter it seems like everything but the /nl/ works (if I do /nl/blahblah) it just goes to the English site..
    With XRouting it seems to not match to the contexts for whatever reason. I've tried multiple fresh installations with combinations of a lot of things but nothing works.

    My .htaccess file is just the standard file with the addition of the RewriteBase being /modx2/ (as I'm working from a /modx2/ folder). Currently the output I get from xRouting is this:

    ## MODX context map:
    
    Array
    (
        [_hosts] => Array
            (
                [localhost/modx2] => Array
                    (
                        [0] => web
                        [1] => nl
                    )
    
            )
    
        [web] => Array
            (
                [base_url] => /
                [cultureKey] => en
                [http_host] => localhost/modx2
                [site_start] => 1
                [site_url] => http://localhost/modx2/
            )
    
        [nl] => Array
            (
                [base_url] => /nl/
                [cultureKey] => nl
                [http_host] => localhost/modx2
                [site_start] => 6
                [site_url] => http://localhost/modx2/nl/
            )
    
    )
    
    
    
    ## Requested URL: 
    
    
    ## Requested URL with base_url: /
    
    
    ## Matched context(s) (Array key defines match quality):
    
    Array
    (
    )
    
    
    
    ## Request will go to context: 
    
    
    ## Modified request URL: 
    
    
    


    Could someone help me out here? And maybe push me into the right direction. I'm kinda lost right now.
      • 3749
      • 24,544 Posts
      Did you try migxMultiLang? I haven't used it, but many people seem to like it and it's well-supported here in the Forums.

      You would probably have to undo what you've done to avoid conflicts.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 42042
        • 140 Posts
        Same issues here. I switched to Lingua, it's amazing in its simplicity. Only downside are the url's which are not like domain.com/en/about-us/, domain.com/nl/over-ons/.