Force WordPress to https

0 4 years ago

Now https is must, you must have SSL installed on all your blog or websites. After installing SSL your site may still go in to http://. So what’s the problem? This problem is frequently happening in non html websites while your browser has old browsing history of your site without SSL, so you have to clear your browser cache and history to see your SSL in effect. If still not seeing then you have to use piece of htaccess code in to your site root dir so it will force http:// to https://.

What about WordPress?

In WordPress after installing SSL go into general settings then change ‘ WordPress Address (URL) and Site Address (URL) ‘ with https:// then refresh your browser, now it should load https:// version of your blog. If in case it still go into http:// then use below code in your .htaccess file which might solve your problem

Options +FollowSymlinks 
RewriteEngine on 
RewriteBase /
RewriteCond %{SERVER_PORT} ^443$

If above code not work then try below code

RewriteCond %{HTTPS} =on 
RewriteRule ^(.*)$$1 [R=301,L]

Change with your site URL. Now clear your browser cache and history then reload you site.