LeeTaylorDoes

  • Archive
  • RSS
  • Ask me anything
  • Submit

Magento Issue: Checkout Redirect With SSL Installation And Sub-Domain

Considering the woes that can come with installing a SSL certificate. Yesterday, we ran into an issue with a client that I wanted to note, just in case anyone else may benefit from the scenario and solution.

logo

Scenario

We had the Magento integrated with SVN and have a post-commit hook that auto-deploys into our root directory on the server. We originally had the httpdocs folder and the httpsdocs folder mirroring each other so that the httpsdocs folder would handle SSL (https) requests and the httpdocs would handle all other non-SSL requests. As we were installing our SSL certificate, we changed the base_url and the secure_base_url to the appropriate (specific) URLs in place of the {{unsecure_url}} and {{secure_url}} generic values. All of a sudden, as soon as SSL installation was complete, the frontend would no longer transition from the “shopping cart” (url: http://cart.crankbrothers.com/checkout/cart/) into the “checkout” (url: https://cart.crankbrothers.com/checkout/onepage/). The checkout URL would redirect back into the shopping cart.

Solution

We realized that the sub-domain and shared docroot setup (httpdocs and httpsdocs, together) could be creating the issue. Thus, we simplified our setup (cheersĀ Eric Dennis) to make httpdocts the separate docroot for both HTTP and HTTPS requests. Game, set, match. Problem solved. By the way, you should check out Crank Brothers for a working example :) Hope this helps save time for someone else!

  • 2 years ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

technology, communication, and simplistic innovations to share wealth and opportunities globally and socially.

Pages

  • Contact

Me, Elsewhere

  • @timothyltaylor on Twitter
  • My Skype Info
  • Linkedin Profile
  • leetaylordoes on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Submit
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr