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 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
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
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
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
oh now I see, I thought, that by 'etc' you mentioned 'etcetera' :) . I look under the 'etc' folder and found the host file
Hi Chris,
It works, thanks man, I was getting pretty desperate here :)
greetings,
Anthony
Your welcome :)
Chris
is working on a reply...
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.