I am guessing you used .htaccess to do the http to https redirect. If possible, do it in the server for the virtual host. Most control panels have a section for this.