Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2013 @ 09:09
    Fuji Kusaka
    0

    Managed Hostnames after upgrading to v4.11

    Hi everyone,

    After upgrading an umbraco website from v4.9 to v4.11.8 i had some issues when managing hostnames for multilingual website.

    Let say i have to change the Hostname for a particular website lang FR to mywebsite.dev.local/fr and EN to mywebsite.dev.local/en on the development website, this works well if we navigate on the local servers but if the client needs to access the website from his place we create an alias like mywebsite.dev.ehost.com/fr which works well until he has to click on any links on the website which gives him this url instead mywebsite.dev.local/fr/anylinks.

    Therefore here the client no longer has access to the website. This used to work before the upgrade, is there something i can do to prevent this ?

     

    //fuji

     

  • Stephen 767 posts 2273 karma points c-trib
    Sep 05, 2013 @ 09:15
    Stephen
    0

    So you have, on the same node:

    - host "mywebsite.dev.local/fr" lang FR
    - host "mywebsite.dev.ehost.com/fr" lang FR

    And when you browse to "mywebsite.dev.ehost.com/fr"all the links point to "mywebsite.dev.local/fr" - right? Ie the menu should contain "mywebsite.dev.ehost.com/fr/about-us" but actually contains "mywebsite.dev.local/fr/about-us" - right?

    Definitively not normal. Quick fix would be to disable absolute urls (use domain prefix...). Though I'd like to figure out what's going on. Do you have some macro caching enabled?

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2013 @ 09:22
    Fuji Kusaka
    0

    Hi Stephen,

    On the Homenode FR i only have this

    - host "mywebsite.dev.local.fr" lang FR

    We use this address until the website goes live. For security purpose we create a virtual directory of the instance so client can access the development website under our local servers.

    And yes we they browse to "mywebsite.dev.ehost.com/fr"all the links point to "mywebsite.dev.local/fr" where they no longer has access.

    Let me try to disable the absolute Urls and get back to you.

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2013 @ 09:37
    Fuji Kusaka
    0

    Nope this didnt work.Diasbling the DomainPrefix

    <useDomainPrefixes>false</useDomainPrefixes>
  • Stephen 767 posts 2273 karma points c-trib
    Sep 05, 2013 @ 09:37
    Stephen
    0

    If you only have the "mywebsite.dev.local/fr" host configured, then when you browse with any other host the absolute urls will indeed use the configured host. That's by design. One way to avoid that is either to disable the absolute urls, or to also configure the ehost domain on the same node.

  • Stephen 767 posts 2273 karma points c-trib
    Sep 05, 2013 @ 09:37
    Stephen
    0

    Can you try configuring the second host?

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2013 @ 09:52
    Fuji Kusaka
    0

    Ok this seems to be working when enabling the domainPrefixes

    <useDomainPrefixes>true</useDomainPrefixes>

    and using 2 domain host name

    -- mywebsite.dev.local/fr
    -- mywebsite.dev.ehost.com/fr 

Please Sign in or register to post replies

Write your reply to:

Draft