What is the problem you’re trying to solve? What’s the problem with the site opening with both HTTP and HTTPS? What do you really want?
Moderator
Yui
(@fierevere)
永子
Probably you want your site to open on https://
Checklist
1)
Dashboard > Settings > General
wordpress url and site url should be both https://
2) Install https://wordpress.org/plugins/better-search-replace/
run replace routline (remove dry run checkmark) on all tables
replacing
http://mysite
to
https://mysite
use your real site address here
3) Set 301 redirect in .htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
or other code, if you have some specific server settings.
If in trouble – ask your webhosting support
——–
Or just use some magic! Like Really Simple SSL plugin or any other similar.
It will go all the required steps with one click
Hi Yui
Thanks for the solution. Issue resolved.
-
This reply was modified 6 years, 1 month ago by
nikku297.