• Resolved 2bearstudio

    (@2bearstudio)


    Had a long sleepless night, tried to launch a WooCommerce store, but having a Redirect Loop error. Debugging & talking with hosting tech support. I am getting confused.

    Here is the situation: I understand the site can be http:// as normal. i.e., site_url is http://www.domain.com.
    WooCommerce forces SSL on checkout page, i.e., https://www.domain.com/checkout

    But I got a redirect loop error on the checkout page. I can see the url is jumping back and forth between http:// & https:// at address bar (Safari browser) before throwing me the error message.

    The problem exists even when theme is on default 2014, with only WooCommerce + Stripe payment gateway plugin.

    But the problem can be solved by change site /home url to https://www.domain.com. So the website is running currently under https:// all the time.

    Here is what I get from the technical support: “As wordpress is setup to use http and the woo commerce plugin is setup to use https there is generating the redirecting loop. Unfortunately I’m afraid that both of them can not work on the same time so you should keep only one method. https for all links or http for all links”

    I don’t really buy this explanation. Please, anyone can explain why the redirect happens? I believe this could be more of a server configuration issue.

    https://wordpress.org/plugins/woocommerce/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor royho

    (@royho)

    Ok so make sure you don’t have any SSL related redirections whether server level ( htaccess ) or site level via any plugins. Then in your site make sure both the WordPress URL and Site URL ( settings->general ) are set to HTTP and NOT HTTPS. Then turn on “force SSL on checkout” in WooCommerce settings and you can optional enable “return to NON SSL when leaving checkout pages”. ( paraphrasing ).

    Thread Starter 2bearstudio

    (@2bearstudio)

    Thank you @roy Ho, your suggestion was tested. As I mentioned, no plugin is activated but WooCommerce related.

    I specifically tried your recommendation. It didn’t work.

    Plugin Contributor royho

    (@royho)

    Ok do this as a test. Turn off WooCommerce SSL. Then try going to your site via HTTPS and tell me if it resolves. If it still redirects, then you have other issues not related to WooCommerce.

    Thread Starter 2bearstudio

    (@2bearstudio)

    Thank you @roy Ho. First of all, I can’t do any test on the site, it went live.

    But for your question, from the test I’ve done, if I visit the site via HTTP, it stays at HTTP. If I visit the site via HTTPS, it stays at HTTPS, and there is no error on this setting.

    The problem (redirect loop) happens when site setup at HTTP, and goto checkout page in WooCommerce.

    The live site is currently running on HTTPS all the time.

    Plugin Contributor royho

    (@royho)

    Can you please provide a URL?

    Thread Starter 2bearstudio

    (@2bearstudio)

    Plugin Contributor royho

    (@royho)

    Ok so from what I can see and from what you have explained in your test, there must be something else that is causing your site to redirect because as you stated, if you turn on “SSL on checkout” via WooCommerce, it will go to https of your site but then redirects back to http and this causes an infinite loop.

    So I am suspecting something is telling your site to go to http. I understand you said you have checked this but it may be worth asking your host about it to see if they may have added something.

    Thread Starter 2bearstudio

    (@2bearstudio)

    Thank you @roy Ho for following this subject so closely.

    Here is what I got from my hosting’s technical support: “As wordpress is setup to use http and the woo commerce plugin is setup to use https there is generating the redirecting loop. Unfortunately I’m afraid that both of them can not work on the same time so you should keep only one method. https for all links or http for all links”

    I want to get a second opinion here, because I think it doesn’t make sense to me.

    Plugin Contributor royho

    (@royho)

    Yes I have read that already but you’re still not asking the host the right question. I am stating server level redirects. What you’re stating is site level. Because site level you can control easily. But server level not so much and most of the time requires them to do it for you.

    You can also check your htaccess file to see if there are any directives in there that is causing the redirects.

    Thread Starter 2bearstudio

    (@2bearstudio)

    .HTACCESS file was checked, and I just checked again. Nothing strange there.

    You indeed mentioned one question that the host support didn’t mention, the server level redirects.

    But as I mentioned, I was asked to remove all the warnings, error in the website before they can correct the problem. Followed by disable all the plugins etc. Nothing helped much.

    The running HTTPS all the time is their solution.

    A bit late now but I just ran into this problem too. I think it is an issue with the secure cert setup.

    http://docs.woothemes.com/document/ssl-by-proxy-problems-network-solutions/

    Shame that WooThemes can’t climb off their technical high horse and just provide us a with a work around/hack for the real world.

    Does anyone know if this same issue (as Network Solutions) applies to sites running on WPEngine?

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    jamiechong unlikely – contact WPEngine support.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘WooCommerce and HTTPS (SSL), redirect loop error on Checkout page.’ is closed to new replies.