Setting up Culture and Hostnames for different environments
Hi!
I have developed a site in Umbraco 8 which I have deployed to 2 different environments. I have follow 3 environments that are running on their own website and database
Localhost running on IIS on my local PC
uat.mysite.dk > external webhotel provider.
www.mysite.dk > external webhotel provider.
The website support Danish and English languages. I have in order to make the website ready for the 3 different environments added hostnames with cultures, however I'm not sure if I have done it correctly, hence I need you guys to take a look and tell me if its correct.
I have right-clicked Home root and choosen "Culture and Hostnames" and then typed in following values.
You could save 1/2 of those if you write a redirect from the root domain to /da for each site, provided that's how you want it to work.
Also, are each of the /da /en separate root nodes or are you using a setup like vorto where there are two tabs for each property in the content section?
I only have one Home root, please refer to attached picture.
Almost every page has 2 translations (Danish and English). Danish is the default language of the website.
I use Umbraco 8s language facility, where each page can have different language versions, please see attached pictures
From above I guess that each of the /da /en are not separate root nodes. So I guess I'm am using a setup like vorto, with two tabs for each property in the content section.
I'm not sure what you mean by "write a redirect from the root domain to /da". Will this procedure be needed with my current setup?
I have looked at different threads here in Umbraco forum and noticed that some people have only two rows in the "Domains and Language". These entries can be e.g.
/da > Danish
/en-us > English (United States)
This seems much easier than my approach, however I'm not sure what is the correct approach.
Dear Amir,
I'm facing issue with Umbraco Multi language website English & Arabic. English (en-US) is working fine as default language. Arabic (ar-SA) secondary language is not working, showing 404 error.
Domains setting with Culture and Hostnames
http://localhost:4865
http://localhost:4865/ar
After playing around with "Culture and Hostnames" I think I have figured out how to go along. I will share my experience with others who may encounter same issue.
The procedure for setting up "Culture and Hostnames" is that for every environment e.g. Localhost, UAT, Production you will only have those hostnames relevant for that specific environment.
For example for my localhost I have only 3 entries.
It's necessary to have one domain entry without any language code (da/en-us) since that will function as the default language of the website.
Above means that when I have deployed my site from localhost to uat and production environments then I will manually have to add the beforementioned entries in each environment.
Note it is important that entries for all environments are not placed in one environment like localhost like I had done in the beginning as shown in the start of this thread, since it will lead to strange behavior like when you click a link within the localhost environment then you will get redirected to either e.g. UAT or Production environment.
Dear Mohammad,
I'm facing issue with Umbraco Multi language website English & Arabic. English (en-US) is working fine as default language. Arabic (ar-SA) secondary language is not working, showing 404 error.
Domains setting with Culture and Hostnames
http://localhost:4865
http://localhost:4865/ar
Setting up Culture and Hostnames for different environments
Hi!
I have developed a site in Umbraco 8 which I have deployed to 2 different environments. I have follow 3 environments that are running on their own website and database
The website support Danish and English languages. I have in order to make the website ready for the 3 different environments added hostnames with cultures, however I'm not sure if I have done it correctly, hence I need you guys to take a look and tell me if its correct.
I have right-clicked Home root and choosen "Culture and Hostnames" and then typed in following values.
Domain Language
http://localhost:44385 > da
http://localhost:44385/da > da
http://localhost:44385/en-us > en-us
http://localhost.mysite.dk > da
http://localhost.mysite.dk/da > da
http://localhost.mysite.dk/en-us > en-us
https://uat.mysite.dk > da
https://uat.mysite.dk/da > da
https://uat.mysite.dk/en-us > en-us
https://mysite.dk > da
https://mysite.dk/da > da
https://mysite.dk/en-us > en-us
https://www.mysite.dk > da
https://www.mysite.dk/da > da
https://www.mysite.dk/en-us > en-us
Is above correct? It seems verbose.
Nevermind the localhost:port-no. entries, I will delete them in the future, now that I have moved the site to IIS (instead of IISExpress)
You could save 1/2 of those if you write a redirect from the root domain to /da for each site, provided that's how you want it to work.
Also, are each of the /da /en separate root nodes or are you using a setup like vorto where there are two tabs for each property in the content section?
Hi Amir Thanks for your reply.
I only have one Home root, please refer to attached picture.
Almost every page has 2 translations (Danish and English). Danish is the default language of the website. I use Umbraco 8s language facility, where each page can have different language versions, please see attached pictures
From above I guess that each of the /da /en are not separate root nodes. So I guess I'm am using a setup like vorto, with two tabs for each property in the content section.
I'm not sure what you mean by "write a redirect from the root domain to /da". Will this procedure be needed with my current setup?
I have looked at different threads here in Umbraco forum and noticed that some people have only two rows in the "Domains and Language". These entries can be e.g.
This seems much easier than my approach, however I'm not sure what is the correct approach.
I'm looking forward to hear your suggestions.
Dear Amir, I'm facing issue with Umbraco Multi language website English & Arabic. English (en-US) is working fine as default language. Arabic (ar-SA) secondary language is not working, showing 404 error. Domains setting with Culture and Hostnames http://localhost:4865 http://localhost:4865/ar
I did followed all steps in the below link: https://www.youtube.com/watch?v=-vzxCdjq4FM&ab_channel=UmbracoHQ
Please assist.
After playing around with "Culture and Hostnames" I think I have figured out how to go along. I will share my experience with others who may encounter same issue.
The procedure for setting up "Culture and Hostnames" is that for every environment e.g. Localhost, UAT, Production you will only have those hostnames relevant for that specific environment. For example for my localhost I have only 3 entries.
Domain Language
http://localhost.mysite.dk Danish
http://localhost.mysite.dk/da Danish
http://localhost.mysite.dk/en-us English (United States)
For my uat environment I have exactly the same 3 entries, however the domain is of course https://uat.mysite.dk
and at last the same goes for production which is https://www.mysite.dk
It's necessary to have one domain entry without any language code (da/en-us) since that will function as the default language of the website.
Above means that when I have deployed my site from localhost to uat and production environments then I will manually have to add the beforementioned entries in each environment.
Note it is important that entries for all environments are not placed in one environment like localhost like I had done in the beginning as shown in the start of this thread, since it will lead to strange behavior like when you click a link within the localhost environment then you will get redirected to either e.g. UAT or Production environment.
Hope above makes sense.
Dear Mohammad, I'm facing issue with Umbraco Multi language website English & Arabic. English (en-US) is working fine as default language. Arabic (ar-SA) secondary language is not working, showing 404 error. Domains setting with Culture and Hostnames http://localhost:4865 http://localhost:4865/ar
I did followed all steps in the below link: https://www.youtube.com/watch?v=-vzxCdjq4FM&ab_channel=UmbracoHQ
Please assist.
is working on a reply...