redirects to unsubmitted exam from all pages accesible by student

- also fixed url rewriting so urls with multiple parameters dont give
internal server error when leaving out the '\' at the end