Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force Wordpress admin/login pages with SSL?

I have WordPress in a sub-domain like blog.my-site.com and can't use SSL with sub-domains (https:// blog.my-site.com)

Is there a way to force WordPress admin/login pages ONLY to SSL URL https:// www.my-site.com/blog_dir/wp-admin/ (the folder name is not the same as sub-domain)

like image 537
Happy Avatar asked Dec 01 '22 04:12

Happy


1 Answers

To force administration and logins over SSL, the proper way is to set the FORCE_SSL_ADMIN constant in wp-config.php.

define( 'FORCE_SSL_ADMIN', true );
like image 175
doublesharp Avatar answered Dec 14 '22 23:12

doublesharp