Have you also added www.govappsolution.com to the hostname of the site in Umbraco?
And have you set the <useDomainPrefixes> to "true" in the umbracoSettings.config in the config folder?
If so you should also go to the "Content" node right click and select "Republish entire site" and make sure to recycle the app pool - then the changes should take effect.
Hope this helps. Otherwise please ellaborate a bit more on what you have done?
What does adding the domain name to the hostname of the site in Umbraco actually do? I've never done it in any previous sites.. I'm curious about what difference it makes?
Basically it makes sure that the request for a site is directed to the corret node in Umbraco in a multi-site setup.
If you have multiple sites set up like this for instance:
Home (www.site1.com) Subpage Subpage Subpage Home (www.site2.com) Subpage Subpage Subpage
You will need to add the hostname for Site1 and Site2 on the "home root" node of the two sites. Otherwise requests for site2 will be directed to site1 since that is the first node in the content tree. But when the hostnames has been added to Site1 and Site2 you will get directed to Site2.com instead of Site1.com.
The reason why useDomainPrefixes must be set to true is to ensure that the url's are unique so that if you have one or more pages in the two sites with the same name, that it's the correct page on the correct domain that is shown.
Aaaah fantastic, thanks! Makes perfect sense :-) I suppose the reason I haven't noticed it before is because I haven't built any multi-sites yet. Thanks for clearing that up.. and merry christmas!
Thanks for all the suggestions. It is working now. Actally, I am not sure how it was fixed. Because i have to ask hosting company to check the settings and they said everything was set up correctly. So i am not sure what was done to correct the problem. Anyway, i appreciate all the suggestions. Thank you very much!!
Page Not Found Error
Hi,
I am new to Umbraco so thank you for reading my problem.
I just installed umbraco. But for some reason it works under the http://mycompany.com but not http://www.mycompany.com
and i got this message:
No umbraco document matches the url 'http://www.govappsolution.com/defaultsite'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "defaultsite"] | /root/*/* [@urlName = "defaultsite"]')
.......
however it will work if i just use http://govappsolution.com
It seems to be an easy fix but i have spent hours and just can't it resolved :(
please help!!!
Thanks
Chia
I forgot to mention: it will alos work if i use http://www.govappsolution.com/default.aspx but will not work if i just use http://www.govappsolution.com
Have you added 'www.govappsolution.com' in the host headers section in IIS?
Yes. It is added the host header.
Hi Chia
Can you tell us how you have setup your site?
You say that the hostnames are added in the bindings in the IIS so it references http://govappsolution.com and http://www.govappsolution.com (Once your issue is solved you should make http://govappsolution.com 301 redirect to http://www.govappsolution.com).
Have you also added www.govappsolution.com to the hostname of the site in Umbraco?
And have you set the <useDomainPrefixes> to "true" in the umbracoSettings.config in the config folder?
If so you should also go to the "Content" node right click and select "Republish entire site" and make sure to recycle the app pool - then the changes should take effect.
Hope this helps. Otherwise please ellaborate a bit more on what you have done?
/Jan
Hi Jan,
What does adding the domain name to the hostname of the site in Umbraco actually do? I've never done it in any previous sites.. I'm curious about what difference it makes?
Hi Alimac
Basically it makes sure that the request for a site is directed to the corret node in Umbraco in a multi-site setup.
If you have multiple sites set up like this for instance:
Home (www.site1.com)
Subpage
Subpage
Subpage
Home (www.site2.com)
Subpage
Subpage
Subpage
You will need to add the hostname for Site1 and Site2 on the "home root" node of the two sites. Otherwise requests for site2 will be directed to site1 since that is the first node in the content tree. But when the hostnames has been added to Site1 and Site2 you will get directed to Site2.com instead of Site1.com.
The reason why useDomainPrefixes must be set to true is to ensure that the url's are unique so that if you have one or more pages in the two sites with the same name, that it's the correct page on the correct domain that is shown.
I hope the above explanation makes sense :)
/Jan
Aaaah fantastic, thanks! Makes perfect sense :-) I suppose the reason I haven't noticed it before is because I haven't built any multi-sites yet. Thanks for clearing that up.. and merry christmas!
Hi,
Thanks for all the suggestions. It is working now. Actally, I am not sure how it was fixed. Because i have to ask hosting company to check the settings and they said everything was set up correctly. So i am not sure what was done to correct the problem. Anyway, i appreciate all the suggestions. Thank you very much!!
Chia
is working on a reply...