Implemented redirect trick so that HTTP_REFERER can be set to afg server