Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

WordPress SSL not working [closed]

As per OP’s comment:

Yes, I have self signed using OpenSSL, now I have the site opening on HTTPS but in browser it still says connection not secure where it is showing HTTPS in the address bar.

In that case, it sounds like some links are being called through HTTP while other are being called on HTTPS, giving you mixed content issues. Before you do anything, remove the FORCE_SSL_ function that you added in your wp-config.php:

define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);

Than, try the following steps using the Search Replace DB tool to ensure everything is pointing to HTTPS:

  1. Go and download Interconnect IT’s Database Search & Replace Script here
  2. Unzip the file and drop the folder in your localhost where your WordPress is installed (the root) and rename the folder to replace (screenshot)
  3. Navigate to the new folder you created in your browser (ex: http://localhost:8888/wordpress/replace) and you will see the search/replace tool
  4. Enter your HTTP URL in the search for… field and the HTTPS URL in the replace with… field, for example:
    • Search: http://localhost/wordpress
    • Replace: https://localhost/wordpress

You can click the dry run button under actions to see what it will be replacing before you execute the script. Once you’re done be sure to remove the /replace/ folder.

Also, I’d consider looking into the Remove HTTP plugin which will automatically scan your website and remove both HTTP and HTTPS protocols from your URL links. This way it will ensure that your website doesn’t have any mixed-content issues.

Related Posts:

  1. How can I redirect user after entering wrong password?
  2. Custom login form
  3. Prevent wp_login_form() from redirecting to wp-admin when there are errors
  4. How do I change the language of only the login page?
  5. Disable WordPress 3.6 idle logout / login modal window / session expiration
  6. Avoid to load default WP styles in login screen
  7. How to fake a WordPress login?
  8. Can not login with correct username and password
  9. How can I add a custom script to footer of login page?
  10. How to keep always logged in development environment
  11. I want to disable E-Mail verifcation / activation when a user signs up for my WordPress site
  12. custom login page redirect to logged in user profile page
  13. Action wp_login_failed not working if only one field is filled out
  14. How to customise wp-login.php only for users who are setting a password for the first time?
  15. WordPress Login Footer URL
  16. Remove built in wordpress login and use only google auth
  17. Change Login Page for a Multisite Subsite
  18. Positioning the “Lost your password?” and “← Back to Site”
  19. send users logging in from wp-login.php directly to home page of site, rather than dashboard
  20. How to get login data (session) outside WordPress?
  21. Add class to input form in login form
  22. Allow access to a page for admins only
  23. Customizing login error messages
  24. Customizing the WordPress login form
  25. Restricting frontend acess based on user role otherwise redirect to login form
  26. how to restrict user login whenever if a user puts on hold by editing wp-login action?
  27. How do I force “users must be registered and logged in” on subsites?
  28. deny IPs from wp-login using .htaccess
  29. Passing username to login screen
  30. Login error redirecting to wp-login page
  31. How can I prevent my custom form from redirecting to wp-login?
  32. reset password link redirect to login page
  33. How do I replace “Username” in the WordPress login form?
  34. Custom Login iframe doesn’t work
  35. Password reset – Disabled for LDAP accounts
  36. How to Get Logged-in to “Remote WP Site” from my local script (in Same Browser)?
  37. Replace dash with space in username on login
  38. Autologin only working the second time
  39. replace wp-login.php login forms via a hook & use custom forms with wp-login form validation
  40. Chrome 83 doesn’t connect WP login page after update from http to https on localhost
  41. Can’t login to WordPress without hitting the Remember Me checkbox. Potential SSL implementation bi-product
  42. Auto login between word press subdomain and a .net website
  43. Disabling standard registration login with username/email and password?
  44. How to change wordpress Log In text
  45. WordPress error on log out ‘Not Permitted’ and can’t log out
  46. Redirect wp-login
  47. Forcing SSL login, have to log in again from WP/BP-Admin Bar
  48. Is wp_login_form secure on a non secure page?
  49. Is the login encrypted before it is sent? If so how to do I encrypt it the same way?
  50. Form Action submit over https
  51. Is there anyway to get the inputted password string from the login form?
  52. Login and Forgot password in Lightbox
  53. Forcing frontend login with UI switch
  54. Prevent display password on wp-login.php
  55. Change default login auth
  56. https to https problem – 404 and can’t login
  57. wordpress login without password just email address (NO 2 factor authentication with email)
  58. Where is the php file, that does the checks for login information?
  59. Cannot Get User id after login success in file wp_login.php
  60. Alert Message through email or phone(Message)
  61. Moving from one host to another – cannot access the dashboard
  62. Temporally disable password to login with empty password?
  63. How are all users now set to inactive?
  64. woocommerce store login not working at first time
  65. How do I change the language of the login page to Arabic?
  66. How do you implement a login feature on a WordPress site?
  67. How to add custom authentication to wordpress login and register
  68. Problem in auto login after registration
  69. Login form does not store/remember/suggest users password
  70. Custom user roles are unable to login
  71. Using is_user_logged_in() to lock down whole site
  72. Check for $ _POST fields in a POST method form
  73. Styling WordPress login page – Can I change the markup on the login page?
  74. Special link for no automatic login (no username and no password)
  75. Can’t login to wordpress, got ERR_EMPTY_RESPONSE after a few minutes
  76. Modify wp-login.php Labels Conditionally Based On Referring URL
  77. Can’t login with any account – No error message shown
  78. WordPress Login & Register works in localhost but don’t work on server
  79. How to login to wordpress via Cpanel
  80. Chrome incorrectly displaying WP login as ‘not fully secure’
  81. Hide login page and use wp_login_form on ordinary pages
  82. Make WordPress User Name the Email Address When Register
  83. Custom Field For Login
  84. How can I have customers log in using ONLY customer number? No password
  85. WordPress logs out on protocol switch
  86. Login user after registration programmatically
  87. How to place wp-login.php in page or page template?
  88. Webpage not found upon entering wrong username and password on custom login form?
  89. WordPress Login / SSL = Code Question
  90. Can’t login through wp-login.php on fresh installation
  91. Hide wp-login.php but not the widget
  92. Showing A Menu When Only Users Are Logged In [duplicate]
  93. Logging in takes a few refreshes to show you are logged in, is this a cache issue? [closed]
  94. I can’t login to wordpress dashboard without SSH
  95. Login form- no feedback
  96. Remove login link from Reset Password-screen
  97. Why am I not able to login to the admin
  98. How to pass users back and forth using session data?
  99. Sniffing wordpress user’s credentials
  100. WordPress site login Redirect
Categories login Tags login, ssl, wp-login-form
Moving the search bar to be in menu bar
how to change wp-admin url using function file

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress