Hi all,

I'm trying to route errors like 400, 403 and 404 to nice, clear URLs
like '/error/', '/forbidden/' and '/whoops/'.

Unfortunately, the Web2Py Book's section on error routing (http://
www.web2py.com/book/default/chapter/04?search=error#Routes-on-Error)
is pretty sparse, and I haven't been able to get this to work.

I have this section both within my application/app/routes.py (snipped
for brevity):

routes_in = (
        ('/error/', '/app/default/error/'),
)

routes_onerror = [
   (r'app/400', r'/error/')
]

However, I keep getting redirected to URLs like "error/?
code=400&ticket=None&requested_uri=None&request_url=/deh/index"

Is there a way I can hide the query string after the "error/"?


Cheers
Ruiwen

Reply via email to