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. User can see and enter the WordPress Admin without login
  66. login_enqueue_scripts changes are not reflecting
  67. SSL Error: unable to get local issuer certificate
  68. When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
  69. When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
  70. Error Importing SSL certificate : Not an X.509 Certificate
  71. When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site?
  72. Error `sec_error_revoked_certificate` when viewed in Firefox only
  73. Organizing Code in your WordPress Theme's functions.php File?
  74. How to check if a user is in a specific role?
  75. How do I Enqueue styles/scripts on Certain /wp-admin Pages?
  76. Changing Admin Menu Labels
  77. Adding custom columns to custom post types
  78. Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
  79. adding custom stylesheet to wp-admin
  80. Can’t change language (only “English (United States)”)
  81. Is there ANY way to remove comments function and section totally?
  82. What’s the easiest way to stop WP from ever logging me out
  83. How to use “menu_order” field for posts?
  84. “Too many redirects” ONLY when trying to access wp-admin page
  85. How to restrict dashboard access to Admins only?
  86. Admin Page Redirect
  87. Disable dragging of meta boxes?
  88. Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
  89. Toggle admin metabox based upon chosen page template
  90. I found this in a plugin. What does it do? is it dangerous?
  91. When moving a WP site, why does wp-admin redirect to old site?
  92. How to disable the “Post Lock/Edit Lock”?
  93. adding the category to the admin column for a custom post type?
  94. How can we make managing lots of pages in WordPress Admin better?
  95. Change page title in admin area
  96. do_shortcode() within Admin Page
  97. How can I control the position in the admin menu of items added by plugins?
  98. Changing the ‘wp-admin’ URL to whatever I want
  99. Unit testing in the WordPress backend (is_admin() is true)
  100. Admin ajax request return 0 with die()
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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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