[Dancer-users] autoredirect to path with trailing slash

Nick Knutov mail at knutov.com
Thu Mar 1 09:38:52 CET 2012


Hello all,

I have a lot of routers with trailing slash, but visitors can manually 
type them without trailing slashes.

Is it possible to make simple autoredirect to the same path with 
trailing slash if current router does not exists and router with the 
same path plus trailing slash exists?

Examples:
/cv should be redirected to /cv/
/contacts to /contacts/
/about    to /about/
etc...

-- 
Best Regards,
Nick Knutov
http://knutov.com
ICQ: 272873706
Voice: +7-904-84-23-130


More information about the Dancer-users mailing list