Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Feb 06, 2011 @ 19:24
    Anthony Candaele
    0

    multilanguage settings on local machine

    Hi,

    I'm currently working on a multilanguage site that should support three languages: English, Dutch and French. On my development machine I have created the following tree structure:

    for the 'manage hostname' settings, I entered these settings:

    domain: en.local
    language: English (United States)

    domain: nl.local
    language: Dutch (Belgium)

    domain: fr.local
    language: French (Belgium)

    On my local webserver (IIS 7.5) I configured the following bindings for the 'Flexisle' web application:

    hostname: en.local
    ip-address: All unasigned

    hostname: nl.local
    ip-address: All unasigned

    hostname: fr.local
    ip-address: All unasigned

    However If I click on the 'alternative link' in the textpage propertiesk, I get the following error message:

    "Page not found

    No umbraco document matches the url 'http://localhost/en.local/methodology.aspx'

    umbraco tried this to match it using this xpath query'/root/*/* [@urlName = "en.local"]/* [@urlName = "methodology"] | /root/* [@urlName = "methodology"]')

    This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element."

    What am I doing wrong? I guess it has to have something to do with my IIS hostname settings, but I don't know how I can make my local webserver serve these different hostnames.

    Thanks for your advice,

    Anthony Candaele
    Belgium

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Feb 06, 2011 @ 20:48
    Chris Houston
    1

    Hi Anthony,

    You have configured everything correctly, except you also need to configure your local hosts file to allow those local domains.

    The host file in case you don't know can be found in:

    windows\system32\drivers\etc

    You should have a line for each of your local domains like:

    127.0.0.1 en.local
    127.0.0.1 fr.local

    etc..

    If you are developing other sites you might want to use longer local domain names, I usually just replace the domain suffix ( e.g. .com ) with .local.

    Cheers,

    Chris

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 06, 2011 @ 20:55
    Anthony Candaele
    0

    Hi Chris,

    Thanks for the great tip. Is this hostfile called 'hostfile', because I looked in the folder you mentioned above, but I cannot find a file with the name hostfile

    Thanks again,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 06, 2011 @ 20:58
    Anthony Candaele
    0

    oh now I see, I thought, that by 'etc' you mentioned 'etcetera' :) . I look under the 'etc' folder and found the host file

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 06, 2011 @ 21:23
    Anthony Candaele
    0

    Hi Chris,

    It works, thanks man, I was getting pretty desperate here :)

    greetings,

    Anthony

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Feb 06, 2011 @ 21:27
    Chris Houston
    0

    Your welcome :)

    Chris

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies