added redirect from error page, added APP_ROOT.