Multisite with SSL but error on cookies and also SSL


I purchased and install SSL in my Cpanel. I also have installed WP Multisite (subdirectory), Bulletproof Security, and Wordfence and want to use SSL on my existing site ( but encounter problem. I want to convert my current website from http to https.

1) I tried and use this link “” but unsuccessful. I have add in

define(‘FORCE_SSL_ADMIN’, true);

define(‘FORCE_SSL_LOGIN’, true);

in my wp-config but whenever i go to login page, it does not redirect to https. I do able to just type and get a green icon and login there but i am wondering if something is wrong. I thought if i force SSL it mean all login would need to be redirect to https.

2) Then, if i navigate from individual dashboard to Network dashboard using superadmin, i get login loop. The only solution i can rectify this is by adding this to my wp-config

define(‘ADMIN_COOKIE_PATH’, ‘/’:wink:;

define(‘COOKIE_DOMAIN’, ”:wink:;

define(‘COOKIEPATH’, ”:wink:;

define(‘SITECOOKIEPATH’, ”:wink:;

also, my admin folder is different than normal admin folder as i use a different folder. Let say i use admin folder “adminfolder”. Is my cookie link above is correct?

3) This also lead to this problem with WordFence. whenever i go to wordfence setting, it says login security token error and i cannot solve this. this issue does not present when i use http.

4) I know htaccess also play important role in https but not sure how. I used the bulletproof plugin. so my htaccess have a lot of coding inside it. but this is my basic multisite htaccess coding.

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ – [L]

# add a trailing slash to /wp-admin

RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^ – [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) main/$2 [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ main/$2 [L]

RewriteRule . index.php [L]

Thanks. I hope someone could help me solve the SSL/HTTPS issue I am having.