Title: Force SSL for Admin
Last modified: December 24, 2018

---

# Force SSL for Admin

 *  Resolved [bz61vl0p](https://wordpress.org/support/users/bz61vl0p/)
 * (@bz61vl0p)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/force-ssl-for-admin/)
 * Hi,
    I am looking at the configuration pages and notice that the option “Force
   SSL for admin and logins is greyed out and set to no. I would like to set it 
   to yes. Per redirect my site has HTTPS via Letsencrypt.
 * Please help and merry X-mas
    bz61v10p

Viewing 1 replies (of 1 total)

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/force-ssl-for-admin/#post-11024999)
 * Hi,
 * You cannot enable it because it is already enabled by WordPress when you access
   your site over HTTPS.
    You can see the code i[n the /wp-includes/default-constants.php core file line 307](https://github.com/WordPress/WordPress/blob/master/wp-includes/default-constants.php#L307):
   if the URL is HTTPS, it defines the `FORCE_SSL_ADMIN`. That’s the way WordPress
   works. If you want to always force HTTPS anyway, you can use a rewrite rule in
   your .htaccess instead.

Viewing 1 replies (of 1 total)

The topic ‘Force SSL for Admin’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/force-ssl-for-admin/#post-11024999)
 * Status: resolved