• poset

    (@paykasaalgentr)


    Hello i have problem with ssl. i update my wordpress site 4.6 after ssl is not work give me ERR_TOO_MANY_REDIRECTS problems. from wordperess 4.6 earlier in wp-includes/functions.php return false; i make return true; it is working with ssl. But now in wp-includes/functions.php In none of these lines of this code

    } elseif ( isset($_SERVER[‘SERVER_PORT’]) && ( ‘443’ == $_SERVER[‘SERVER_PORT’] ) ) {
    return true;
    }
    return false;

    4.6 Function.php changed. How do I do now please help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Since you edited wp-includes/functions.php the changes were overwritten by the 4.6 upgrade. This file is part of WordPress Core itself, and should not be edited directly.

    The easiest way to ensure that your site is correctly served over HTTPS is to navigate to settings->general and change the two URL settings which are labelled “WordPress Address (URL)” and “Site Address (URL)”. In most cases these are set to the same value. The change required here is to alter the first seven characters of each url from “https://” to “https://” (note the extra letter ‘s’.

    For anyone else reading this thread, my advice is specific to this particular issue.

    If you, as someone other than the person who started this thread, want to set your own site to serve over HTTPS you will need to make a similar change to your settings AFTER you have configured your web-hosting provider’s SSL support; or, if you are hosting on a VPS you will need to configure your web-server appropriately. Without your hosting-provider’s setup being configured appropriately the change above will cause your site to redirect to HTTPS and fail to load because your web-server is not configured to support it.

    Have the same problem as topic starter. Could anyone help?

    PS My SSL and website settings configures appropriately.

    Did you try Daniel’s suggestions?

    Of course! Please read my PS above.

    PS My SSL and website settings configures appropriately.

    That means:
    – I added correct URLs (with https) to both WP address and Site address fields
    – I checked SSL and everything seems well.
    – I checked wp-config.php and database and everything seems well (the URL contains https).

    paykasaalgentr, did you resolve the issue? PLEASE let me know if so!

    Please check that there are no CAPS in your WordPress & Site URL values in the General Settings. It used to work fine for my site with capital letters in there however updating to 4.6 resulted in these same redirect errors until I replaced the caps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ssl problems with 4.6’ is closed to new replies.