• Resolved salajm

    (@salajm)


    Hi,

    please help me with strange problem. I have woocommerce e-shop that has SSL certificate and WordPress is set to https://site.url. Everything worked fine for months. Today I saw that https:// pages are bad rendered – all scripts and css have urls that begin with http:// so they are blocked by browser. Links to other pages are correct – https://. Second problem – I cannot login to wp-admin, browser returned error – too many redirects. I tried everything – disable all plugins, set the default theme, revert WordPress to older version because yesterday automatically updated to new version. Nothing helped. Please help me, I don’t know what happened…

    Michal

Viewing 12 replies - 1 through 12 (of 12 total)
  • WC uses the WP function is_ssl() to redirect insecure pages. This can cause a redirect loop in some cases. Did you install another plugin?

    Check if the “Force Secure Checkout” is checked here: WooCommerce > Settings > Checkout tab. Does unchecking that fix it?

    Thread Starter salajm

    (@salajm)

    No, I didn’t install a plugin. Force Secure Checkout is unchecked

    Ask your host about the redirects.

    Thread Starter salajm

    (@salajm)

    why? It’s clearly a WordPress issue, redirects are only when I am using /wp-admin/, the site is working (with limitations that scripts and css files are loaded with http:// so they are blocked)

    What’s your .htaccess file look like?

    Thread Starter salajm

    (@salajm)

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    This is why.

    The webpage at https://www.michalsalaj.sk/wp-admin/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

    Thread Starter salajm

    (@salajm)

    🙂

    Thread Starter salajm

    (@salajm)

    I worked for months to make this site and when it is finished, it will stop working without real reason? There were no change in configuration of the server or wordpress. Yesterday it worked and today not. How to debug the real reason in wordpress? Is there some debug possibility?

    Thread Starter salajm

    (@salajm)

    This /wp-admin/ redirect is not a main problem. I fixed it with define(‘FORCE_SSL_ADMIN’, false);

    The problem is, why in https://www.michalsalaj.sk if you look at html source, scripts and css urls are http:// when I load page with https://

    It looks like the function is_ssl() return false even if the page is loaded with https://

    Thread Starter salajm

    (@salajm)

    I found a reason:

    https://www.michalsalaj.sk/doc/info.php

    SERVER_PORT 80
    REQUEST_SCHEME http

    kmessinger, thank you, I would never see server configuration without your hint 🙂

    I contacted my provider

    Yahoo! You are back in business. Glad we could help.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘HTTPS stopped working without reason’ is closed to new replies.