OK this is because your redirect is taking you from: http://www.yoursite.com to https://yoursite.com.
Sites with and without the "www." function as separate sites.
The solution is to add a .htaccess file to either force it to always or never use www. so it stays consistent.
Try this in a .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
replacing example.com with your domain