Search code examples
magentohttp-redirectstaging

Magento staging site - secure urls redirecting to live site


Following the Crucial staging setup tutorial, I copied our live setup to a staging environment. Unlike many other posts about staging sites redirecting to the live site, I'm only having half that problem.

All my unsecured url's work fine, no issues. It's only the secured url's. So if I try to access customer account, login, go to my cart, etc. I will get kicked back to the live site.

So far I've:

  • Checked that my staging db is being called and not my live db (it is)
  • Cleared cache, sessions (please don't tell me to do this again)
  • Changed .htaccess RewriteBase to /staging/ instead of /
  • Checked local.xml to ensure all settings are correct
  • Changed all url entries in core_config_data
  • Started all over and tried it a second time

The only possible thing that I can think of is that my SSL cert doesn't like these url's so it's redirecting back to the originating url that it was registered with. My SSL cert. is NOT a wildcard which makes sense except that the browser should just ask you if you want to add an exception (in my case Firefox).


Solution

  • My hosting provider said I cannot do this with my current SSL cert. So now I am looking at alternatives.