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

FORCE_SSL_ADMIN not working

Just figured it out… It was the positioning of the define statement.

I added the below above the /* That's all, stop editing! Happy blogging. */ line

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

Thanks!

Related Posts:

  1. Change Login URL Without Plugin
  2. Share same domain for wp-admin but for different website
  3. Can I rename the wp-admin folder?
  4. Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
  5. Use a different domain for SSL
  6. What is the best method to close off the backend?
  7. Securing wp-admin folder – Purpose? Importance?
  8. How to get the post editor and media library to respect HTTPS administration mode?
  9. Can I rename the wp-admin folder?
  10. Upgrade to SSL Breaks Admin Dashboard
  11. Options for restricting access to wp-admin
  12. How to change “wp-admin” to something else without search-replacing the core?
  13. Replace wordpress login logo with custom text
  14. Block access to wp-admin
  15. Using /wp-admin works, using /login gives a 404. Why?
  16. Change WP-Login or WP-Admin
  17. Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
  18. SSL Partially breaking admin panel and elementor
  19. Why is there an intermediate redirect to https://public-url.org/wp-admin?
  20. Limit access to wp_admin
  21. I want to disable login of admin (/wp-admin) with email and make it accessible only with username
  22. password reset link being sent as HTTP?
  23. How to Change The WordPress Login URL Without Plugin
  24. Use Password Protected Form without the use of wp-login.php
  25. wp-admin – 404 after custom login form
  26. How to fix ‘WordPress redirection loop problem in wp-login.php page’?
  27. 404 redirect wp-login and wp-admin after changing login url [closed]
  28. Logout USER form backoffice after 30 minutes of inactivity [closed]
  29. Do I have to face security problems if I changing default role to Contributor
  30. Too many redirects after added SSL redirect on port 80 virtual host
  31. Hide username discovery
  32. WordPress server change – slow admin login time for first time
  33. White screen of death for wp-admin and error for wp-login.php after entering credentials
  34. Have different site location for wp-admin in IIS
  35. Blank page for wp-admin after i uploaded the website from my localhost to the live server
  36. How to set where user is redirected to after logging in at wp-login?
  37. Efficient way to check local WordPress php files and Database for malicious code? [duplicate]
  38. Renaming wp-admin without hard-coding it. Is it really possible?
  39. Why can I log into wp-login.php and not wp-admin.php?
  40. Need help for WordPress User Session Management?
  41. Disable Admin CP authentication (or auto login)
  42. Developer/Designer asking for admin access
  43. WP Core hard coded to use http://www.w3.org/1999/xhtml not HTTPS
  44. Is WordPress secure enough for a multi-user article directory?
  45. When i try to open Localhost/wordpress/wp-admin . An Error appears ” Registration Has been Disabled” . No login page is shown in the browser
  46. Can I rename the wp-admin folder?
  47. CSRF attack to create USER
  48. Wp-admin loguts me. When sign with Wp_singon
  49. Having SSL enabled on admin, but disabled on post preview and live preview?
  50. Can I rename the wp-admin folder?
  51. Mixed content and expired session issues with SSL and wp-admin
  52. SSL doesn’t deliver parts of WordPress Administration Module
  53. Why WordPress not logout after I have close my browser?
  54. Forcing WordPress Administration onto a separate SSL Host
  55. Launch wordpress site to local computer from live website backed-up
  56. ‘Too many redirects’ error after changing site URL in WordPress [closed]
  57. How to protect wp-admin from third party access?
  58. Couple questions about .htaccess, login page, updates
  59. Custom login form logo not displaying
  60. is exposed wp-admin site a serious security vulnerability
  61. WordPress site shows a white page for site/wp_admin. A login returns again to the login screen
  62. Https Website: CSS and JS files load in http and admin page does not load too
  63. Can a user submit requests to wp-admin/admin.php without logging in?
  64. Unable to login or reset password via wp-admin
  65. login_enqueue_scripts changes are not reflecting
  66. Trying to get custom js files in my admin header
  67. Can content be recovered in this situation?
  68. Why am I locked out of the system?
  69. Is it possible to create two different wp-admins for a wp website
  70. Disable the “remember me” to wp-admin
  71. How to Restrict Access to all wp-admin pages for subscriber users
  72. Why is WordPress enqueuing admin relevant scripts (e.g., React, ReactDOM, Redux, hooks, TinyMCE etc) when not logged in?
  73. wp-login not found – All usual solutions not working
  74. Is there a filter to edit html of user-edit.php
  75. What do I need for testing a single script in admin
  76. wp_get_update_data() function running on every admin request
  77. WordPress multiple admin notices on post update/add
  78. Sub menu is not working properly
  79. Do not load the site as soon as you enter the WordPress panel
  80. How to remove some author fields from the edit comment page in wp-admin?
  81. do_shortcode() within Admin Page
  82. Not able to access WP Admin, it says “Sorry, you are not allowed to access this page.”
  83. How do I edit an add in wp_list_table and return to same page
  84. admin_post_nopriv_{$action} is secure?
  85. How to log into WordPress via GET/POST
  86. Locked out of WordPress after changing to HTTPS – Google Cloud VM
  87. How to make Media Library use HTTPS?
  88. How to remove Google fonts from wp-admin (Roboto) added by core
  89. Trying to login to my site redirects me to the first page
  90. wp.media – drag&drop overlay stuck
  91. Why might this disable other functionality?
  92. Search plugin form on “Add Plugin” page not working
  93. Managing advertising code snippets
  94. Getting 404s in wp-admin after logged in
  95. WordPress Admin panel issue
  96. Can’t toggle between Visual and Text or Screen Options
  97. Cannot Update wp DB – Get 500 Error
  98. plugin: ‘init’ hook, check if we’re not in admin
  99. PHP Fatal error: Uncaught Error: Cannot unset string offsets when trying to upload any file to media library
  100. Wp doesn’t save meta box data
Categories wp-admin Tags security, ssl, wp-admin, wp-login-form
Install WordPress on new server or just copy old files?
Different Webhost and using Google Mail server: Is there a better way than SMTP?

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