Subdir support for admin interface
Fix several redirects in frontend and admin