Copied to clipboard

Flag this post as spam?

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


  • chia 4 posts 24 karma points
    Dec 24, 2011 @ 17:45
    chia
    0

    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

  • chia 4 posts 24 karma points
    Dec 24, 2011 @ 17:51
    chia
    0

    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 

  • awm 187 posts 376 karma points
    Dec 24, 2011 @ 18:50
    awm
    0

    Have you added 'www.govappsolution.com' in the host headers section in IIS?

  • chia 4 posts 24 karma points
    Dec 25, 2011 @ 17:44
    chia
    0

    Yes. It is added the host header.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 25, 2011 @ 21:08
    Jan Skovgaard
    0

    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

  • awm 187 posts 376 karma points
    Dec 25, 2011 @ 22:56
    awm
    0

    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?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 25, 2011 @ 23:08
    Jan Skovgaard
    0

    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

  • awm 187 posts 376 karma points
    Dec 25, 2011 @ 23:10
    awm
    0

    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!

  • chia 4 posts 24 karma points
    Dec 26, 2011 @ 05:14
    chia
    0

    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

     

     

Please Sign in or register to post replies

Write your reply to:

Draft