- en (english site) - Frontpage - Om os - Products
I have set hostnames up in Umbraco for the "da" and the "en" node to: mysite.dk and mysite.com and I have also asked the server admin to set up DNS (or whatever they have to set up, I don't know a thing about this, to be honest) to point to the server with Umbraco installed. Also, on the "da" and "en" nodes, I have an umbracoRedirect property which is a contentpicker to redirect to the "Forside" and "Frontpage" nodes.
While the danish site works, I keep getting a 404 not found on the english site :-( And when I click on the actual link for the document, i.e.: /en/frontpage.aspx, it also displays a 404 not found.
Also check that useDomainPrefix is set to true in umbracoSettings.config - I don't saw it mentioned in Sebastiaans post while I skimmed it. It's probably not relatedto the 404 issue but it's important to ensure you can't access content from site.dk on site.com and vice verca in regards of SEO and duplicate content.
Thanks a lot for your answers guys. I told the admin to point the .endomain back to their old site, so they actually had a site over the weekend ;-) Haven't got a chance to hook up with the admin yet though.
However, I tried to remove all hostnames from the "en" node and tried to access it by simply typing the url: www.mysite.dk/en/ and www.mysite.dk/en/frontpage/ but the strange thing here is, that this gives me an IIS 404 error.. ?
@Jan: I turned on useDomainPrefix when I started the project, but thanks for the reminder! :-D
Also, I remove the umbracoRedirect properties from the "da" and "en" nodes and create a new one with the alias "umbracoInternalRedirectId", as Sebastiaan mentions in his blog. This works for the danish site, but even though no hostnames, no DNS and no CNAMEs are set up for the english site, it gives me a 404 error when trying to access it, like I mentioned above.
Depending on the server setup, the IIS might overrule the umbraco 404.
Are you getting the same IIS 404 from these two urls?: mysite.dk/da/somerandomnonexistingpage.aspx mysite.dk/en/forntpage.aspx
If you want to test the site without setting up the DNS, then you can just add the hostnames to your local hosts file. That way you can test with the real domains, without interrupting service on their main site. Ping me on twitter/msn/skype if you have no idea what I'm on about :)
Had a chat with Morten on Messenger. Tried to set up the hostnames locally on my PC, but it turned out that the umbracoInternalRedirectId was the way to go and not the regular 302 umbracoRedirect property.
So if anyone is having the same problem, the solution was to simply:
- Set up appropriate domains in the "manage hostnames" menu in Umbraco, on the "en" and "da" nodes. - Have a property with a contentpicker datatype, with the alias "umbracoInternalRedirectId" on the "en" and "da" nodes. This contentpicker should point to the "forside" and "frontpage" nodes.
Multilingual site question
Hi all,
I have followed Sebastiaans approach of setting up a multilingual site in Umbraco, where I have a site-node for each of the sites. Link to his blogpost: http://cultiv.nl/blog/2010/12/19/tip-of-the-week-the-ultimate-site-structure-setup/
My structure is as follows:
- da (danish site)
- Forside
- Om os
- Produkter
- en (english site)
- Frontpage
- Om os
- Products
I have set hostnames up in Umbraco for the "da" and the "en" node to: mysite.dk and mysite.com and I have also asked the server admin to set up DNS (or whatever they have to set up, I don't know a thing about this, to be honest) to point to the server with Umbraco installed. Also, on the "da" and "en" nodes, I have an umbracoRedirect property which is a contentpicker to redirect to the "Forside" and "Frontpage" nodes.
While the danish site works, I keep getting a 404 not found on the english site :-( And when I click on the actual link for the document, i.e.: /en/frontpage.aspx, it also displays a 404 not found.
So, what exactly have I missed here? :-)
Any help and hint is greatly appreciated!
Thanks in advance.
All the best,
Bo
Quick diagnostics here :-)
Which of these urls give you a 404?
mysite.dk/
mysite.dk/umbraco/
mysite.dk/da/forside.aspx
mysite.dk/en/frontpage.aspx
mysite.com/
mysite.com/umbraco/
mysite.com/en/frontpage.aspx
mysite.com/da/forside.aspx
Also, if you run
ping mysite.dk
pingmysite.com
in a console, do they resolve to the same IP address?
Common things to check:
Check that mysite.dk and mysite.com resolve to the same IP address
Check that IIS is properly configured to host mysite.dk and mysite.com on the same web site
Check that "mysite.dk" is properly configured as hostname on the DA node
Check that "mysite.com" is properly configured as hostname on the EN node
Stephan
Also check that useDomainPrefix is set to true in umbracoSettings.config - I don't saw it mentioned in Sebastiaans post while I skimmed it. It's probably not relatedto the 404 issue but it's important to ensure you can't access content from site.dk on site.com and vice verca in regards of SEO and duplicate content.
/Jan
Thanks a lot for your answers guys. I told the admin to point the .endomain back to their old site, so they actually had a site over the weekend ;-) Haven't got a chance to hook up with the admin yet though.
However, I tried to remove all hostnames from the "en" node and tried to access it by simply typing the url: www.mysite.dk/en/ and www.mysite.dk/en/frontpage/ but the strange thing here is, that this gives me an IIS 404 error.. ?
@Jan: I turned on useDomainPrefix when I started the project, but thanks for the reminder! :-D
Also, I remove the umbracoRedirect properties from the "da" and "en" nodes and create a new one with the alias "umbracoInternalRedirectId", as Sebastiaan mentions in his blog. This works for the danish site, but even though no hostnames, no DNS and no CNAMEs are set up for the english site, it gives me a 404 error when trying to access it, like I mentioned above.
Soooo.. what could cause this problem?
Thanks in advance.
- Bo
Depending on the server setup, the IIS might overrule the umbraco 404.
Are you getting the same IIS 404 from these two urls?:
mysite.dk/da/somerandomnonexistingpage.aspx
mysite.dk/en/forntpage.aspx
If you want to test the site without setting up the DNS, then you can just add the hostnames to your local hosts file. That way you can test with the real domains, without interrupting service on their main site. Ping me on twitter/msn/skype if you have no idea what I'm on about :)
Had a chat with Morten on Messenger. Tried to set up the hostnames locally on my PC, but it turned out that the umbracoInternalRedirectId was the way to go and not the regular 302 umbracoRedirect property.
So if anyone is having the same problem, the solution was to simply:
- Set up appropriate domains in the "manage hostnames" menu in Umbraco, on the "en" and "da" nodes.
- Have a property with a contentpicker datatype, with the alias "umbracoInternalRedirectId" on the "en" and "da" nodes. This contentpicker should point to the "forside" and "frontpage" nodes.
is working on a reply...