Forums / Setup & design / error.ini not working
Philipp Groszmann
Tuesday 28 October 2008 9:03:56 am
Hi! I tried to set up a propper 404-error page using error.ini setting to "redirect". The error message disappeared but the redirection is not happening.Settings are (shortened):
[ErrorSettings] DefaultErrorHandler=redirect DefaultRedirectURL=/content/view/full/8794 DefaultRerunURL=/content/view/full/2 DefaultEmbedURL=/user/login [ErrorSettings-kernel] ErrorHandler[] ErrorHandler[20]=redirect RedirectURL[] RedirectURL[2]=/404 RedirectURL[3]=/404 RedirectURL[4]=/404 RedirectURL[20]=/404 RedirectURL[21]=/404 RedirectURL[22]=/404
Any ideas?
cheersPhilipp
Yannick Komotir
Wednesday 29 October 2008 7:54:23 am
Hi,
You can simply copy the folder "error" from the standard design to your site access and customize files like 20.tpl, 21.tpl and 22.tpl which correspond to 404 http error.
RegardsYannick Komotir
<|- Software Engineer @ eZ Publish developpers -|> @ http://twitter.com/yannixk
Thursday 30 October 2008 2:54:17 am
Thanks, that's nice for the start. But besides I'd have to change eight pages this solution will not send the correct page headers.I'd like to get the propper solution work.
Gaetano Giunta
Thursday 30 October 2008 10:55:04 am
# here you set up only error type 20 to be redirected ErrorHandler[20]=redirect # even if here you set up a redirect page for all the error types... RedirectURL[] RedirectURL[2]=/404 RedirectURL[3]=/404 RedirectURL[4]=/404 RedirectURL[20]=/404 RedirectURL[21]=/404RedirectURL[22]=/404
#you most likely miss: ErrorHandler[21]=redirect ErrorHandler[22]=redirect# etc...
Principal Consultant International Business Member of the Community Project Board