Hi, umbraco has custom not found handler, which allow set id of page to show on not found error. I like to set it up by url rather by id. so I try comment error401 tag like this
<errors> <!-- the id of the page that should be shown if the page is not found <error404>1951</error404> --> </errors>
in umbracoSettings.config file and hope I can use standard asp.net way (customerrors in web.config) but it doesn't work.
Is there simple way how to set custom error page by relative url. I'd like to have custom error page for each branch (language) of website.
I know in theory I can create one not found page and store texts in dictionary, but will be better for me to have userdefined pages.
You can have language dependent 404 pages. Don't know the syntax by heard, but you should be able to find an example of those in the umbracoSettings.config that comes with release.
<errors>
<!-- the id of the page that should be shown if the page is not found -->
<!-- <errorPage culture="default">1</errorPage>-->
<!-- <errorPage culture="en-US">200</errorPage>-->
<error404>1</error404>
</errors>
Hello, I am just new to umbraco, what I would like to know, I changed the error404 tag id from 1 to 1085, and the page has not shown the custom error page I designed. Would anyone know why?
ORIGINAL
<errors> <!-- the id of the page that should be shown if the page is not found --> <!-- <errorPage culture="default">1</errorPage>--> <!-- <errorPage culture="en-US">200</errorPage>--> <error404>1</error404> </errors>
LATEST
<errors> <!-- the id of the page that should be shown if the page is not found --> <!-- <errorPage culture="default">1</errorPage>--> <!-- <errorPage culture="en-US">200</errorPage>--> <error404>1085</error404> </errors>
Custom page not found handler
Hi, umbraco has custom not found handler, which allow set id of page to show on not found error. I like to set it up by url rather by id. so I try comment error401 tag like this
in umbracoSettings.config file and hope I can use standard asp.net way (customerrors in web.config) but it doesn't work.
Is there simple way how to set custom error page by relative url. I'd like to have custom error page for each branch (language) of website.
I know in theory I can create one not found page and store texts in dictionary, but will be better for me to have userdefined pages.
Petr,
You can have language dependent 404 pages. Don't know the syntax by heard, but you should be able to find an example of those in the umbracoSettings.config that comes with release.
Cheers,
D/rk
Thank you Dirk, I don't know this syntax (I need add it to old v3 project)
but it doesn't help much if you have two branches with different layout like this:
Content
- cars (cars.example.com)
- bikes (bikes.example.com )
and you want for each branch different 404 page. In this situation url instead of id will be better.
And I already want to know if is possible to determine original url? Id like to suggest similar pages using xslt search.
Thanks
Petr
Hello, I am just new to umbraco, what I would like to know, I changed the error404 tag id from 1 to 1085, and the page has not shown the custom error page I designed. Would anyone know why?
ORIGINAL
LATEST
Any help would be great thanks.
Regards
Paul
@Paul: You should enable custom errors.
Hmmm... I tried doing this as well.
I have <customErrors mode="On" /> in web.config and set the <error404> tag in the umbracoSettings.config file to the node I have created.
I am not redirected to that page.
Do I need to set anything up in the 404handlers.config file?
Has anyone ever used the 404 widget from Goolge? Is it any good?
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=136085
/RasB
@Paul & @rasb,
I know it has been a couple of months but did you find a solution to your problem? If not, what is your current setup?
@Petr,
I am not familiar with v3 (as I started Umbraco with v4) but have you seen http://our.umbraco.org/wiki/how-tos/how-to-implement-your-own-404-handler?
--
Donald
is working on a reply...