Replaced 'HEAD' request with 'GET' request, and added redirect when it works.