Fixed 301 redirect issues on Webservices