Fixed bug for wrong redirects if file does not exist