Viewing 4 replies - 1 through 4 (of 4 total)
  • There must be some instances with http in the database. Did you try search replace all http URLs with https? You can do that using any search replace plugin or with WP CLI command like below:

    wp search-replace "http://example.com" "https://example.com" --dry-run --report-changed-only

    Once you see the number of replaces to be made then remove the –dry-run flag:

    wp search-replace "http://example.com" "https://example.com" --report-changed-only

    Thread Starter hmd9261

    (@hmd9261)

    @wpcoworker thank you for your reply. I quickly tried this, but the effect is the same as before (only that, of course, I can no longer enforce an unencrypted http connection when accessing the Dashboard). Changing the siteurl and home URLs back to http now allows me to access the Dashboard without encryption again (as before).

    As you have mentioned a possible http URL I have now tried to login having the Firefox development tools open looking at the network tab. I see this here:

    302 POST 🔒 <my-site-url> wp-login.php
    403 GET 🔒 <my-site-url> /wp-admin/

    So no redirect to any http URL.

    • This reply was modified 4 years, 8 months ago by hmd9261.
    Thread Starter hmd9261

    (@hmd9261)

    One more observation: I have just tried overriding siteurl and home in functions.php to https URLs without the www. prefix to the host name. Now it works, but of course the page will always be redirected to that host name without the www.. While this does not make the page function worse, it is still going to be confusing for users. But maybe this finding helps to localise the problem?

    Glad you are getting closer. When you make such changes, please retry after clearing browser history, cache and cookies. That will give you proper results.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘403 (not authorized) on login form submit when using https’ is closed to new replies.