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".
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).
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?
Have you set hostnames on your top level nodes?
Cheers,
/Dirk
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.
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
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.
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
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?
It should do, but don't include the http:// in the hostname setting.
is working on a reply...