Copied to clipboard

Flag this post as spam?

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


  • Matt Bliss 176 posts 234 karma points c-trib
    Jun 30, 2011 @ 17:28
    Matt Bliss
    0

    Multi-site Page Not Found not working

    I have Umbraco 4.7.0 with uComponents v2.1 RTM

    My home page document type has the umbracoPageNotFound property defined:

    The home page has a node selected and is published:

    The 404 handlers are defined in the 404handlers.config:

    But I am still getting the default 404 page:

    What am I missing?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jun 30, 2011 @ 17:32
    Dirk De Grave
    1

    Have you set hostnames on your top level nodes?

     

    Cheers,

    /Dirk

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jun 30, 2011 @ 17:33
    Lee Kelleher
    0

    Hi Matthew,

    Try adding "?umbDebugShowTrace=true" to the end of your URL ... and check out what the trace logs say - there should be some mention of the "MultiSitePageNotFoundHandler".

    Let me know what the message is.

    Cheers, Lee.

  • Matt Bliss 176 posts 234 karma points c-trib
    Jun 30, 2011 @ 17:40
    Matt Bliss
    0

    Hi Dirk,

    Yes I had tried setting a host name

    Thanks

    Hi Lee,

    I think this is the part you want, but let me know if you need more:

    Thanks,
    Matt 

    Trace Information

    CategoryMessageFrom First(s)From Last(s)
    aspx.page Begin PreInit    
    umbracoInit handling request 7.37978121463599E-05 0.000074
    request handler current url '/b' 0.000427511505092418 0.000354
    umbracoRequestHandler xpath: '/root/*' 0.000517915880799698 0.000090
    umbracoRequestHandler xpath: '/root/* [@urlName = "b"] | /root/*' 0.000536678611844587 0.000019
    umbracoRequestHandler xpath: '/root/* [@urlName = "b"] | /root/*/* [@urlName = "b"]' 0.000566336476801207 0.000030
    umbracoRequestHandler Just before xPath query (False, '/root/* [@urlName = "b"] | /root/*/* [@urlName = "b"]') 0.00058612599019238 0.000020
    umbracoRequestHandler pageXPathQueryStart: '/root' 0.000599097698981516 0.000013
    notFoundHandler Trying NotFoundHandler 'umbraco.SearchForAlias'... 0.000842769898151641 0.000244
    urlAlias 'b' 0.00108991059977367 0.000247
    notFoundHandler Trying NotFoundHandler 'umbraco.SearchForTemplate'... 0.00129074122972463 0.000201
    notFoundHandler Trying NotFoundHandler 'umbraco.SearchForProfile'... 0.03356826027914 0.032278
    notFoundHandler Trying NotFoundHandler 'uComponents.Core.NotFoundHandlers.MultiSitePageNotFoundHandler'... 0.0337611806865334 0.000193
    notFoundHandler Trying NotFoundHandler 'uComponents.Core.NotFoundHandlers.SearchFor301MovedPermanently'... 0.0338717880045266 0.000111
    umbraco301MovedPermanently 'b' 0.0339551539041871 0.000083
    notFoundHandler Trying NotFoundHandler 'umbraco.handle404'... 0.0341271984156922 0.000172
    notFoundHandler NotFoundHandler 'umbraco.handle404 found node matching b with id: 1 0.0343443134666164 0.000217
    umbracoRequestHandler After xPath query 0.0343686695586571 0.000024
    umbracoRequestHandler Access checking started 0.0343837600905319 0.000015
    umbracoRequestHandler Access checking ended 0.0343990569596379 0.000015
    umbracoInit Done handling request 0.0344115250848736 0.000012
    umbracoPage Looking up skin information 0.0344354677480196 0.000024
    aspx.page End PreInit 0.0345234451150509 0.000088
    aspx.page Begin Init 0.0345394183327046 0.000016
    aspx.page End Init 0.0345789324783101 0.000040
    aspx.page Begin InitComplete 0.0346016955865711 0.000023
    aspx.page End InitComplete 0.0346159403998491 0.000014
    aspx.page Begin PreLoad 0.0346277574500189 0.000012
    aspx.page End PreLoad 0.0346395831761599 0.000012
    aspx.page Begin Load 0.0346511629573746 0.000012
    aspx.page End Load 0.0363651350433799 0.001714
    aspx.page Begin LoadComplete 0.0363877284043757 0.000023
    aspx.page End LoadComplete 0.0364117615993965 0.000024
    aspx.page Begin PreRender 0.0364268381742739 0.000015
    aspx.page End PreRender 0.0364400867597133 0.000013
    aspx.page Begin PreRenderComplete 0.0364528291210864 0.000013
    aspx.page End PreRenderComplete 0.0364650848736326 0.000012
    aspx.page Begin SaveState 0.0365555631837043 0.000090
    aspx.page End SaveState 0.0365706367408525 0.000015
    aspx.page Begin SaveStateComplete 0.0365822670690306 0.000012
    aspx.page End SaveStateComplete 0.0365943304413429 0.000012
    aspx.page Begin Render 0.0366137638626933 0.000019
    aspx.page End Render 0.036747083364768 0.000133
  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jun 30, 2011 @ 17:46
    Lee Kelleher
    0

    Hi Matthew,

    The way this NotFoundHandler works is by taking the domain/hostname that you are currently browsing (using ServerVariables["SERVER_NAME"]) and doing a lookup for the root node that is associated with that domain/hostname.

    If the hostname isn't associated with a website/node - then it wont do the 404.

    As Dirk says, double check that the hostname associated with the node is correct (e.g. use that hostname to browse the website).

    Cheers, Lee.

  • Matt Bliss 176 posts 234 karma points c-trib
    Jun 30, 2011 @ 17:53
    Matt Bliss
    0

    Thanks Both,

    I made a typo in the hostname!

    I've been round in cirlces double checking it all and each time missed a silly typo.

    Thanks again
    Matt

  • djscorch 67 posts 106 karma points
    May 25, 2012 @ 11:55
    djscorch
    0

    Hi, i'm having a similar problem.

    If my url is http://my.website.local.dev/en/

    and the host name is set to the same as the above, should it just work?

  • Matt Bliss 176 posts 234 karma points c-trib
    May 25, 2012 @ 13:25
    Matt Bliss
    1

    It should do, but don't include the http:// in the hostname setting.

Please Sign in or register to post replies

Write your reply to:

Draft