Fix redirect URLs in several exploits when URIPATH is "/"

[SeeRM #8507]