SSL is active for sure, but your wordpress has 'http://' URL in it's database (instead of 'https://').
We have command v-migrate-site-to-https:
You can call it from SSH:and it will automatically replace http://yourdomain.com to https://yourdomain.com in your WordPress database.
That's it !
---------------------------
...but, if your WordPress is uploaded in subfolder, our script will not detect WordPress in subfolder.
However, you can do http to https replace manually, with wp-cli:
We have command v-migrate-site-to-https:
You can call it from SSH:
Code:
sudo /usr/local/vesta/bin/v-migrate-site-to-https yourdomain.com
That's it !
---------------------------
...but, if your WordPress is uploaded in subfolder, our script will not detect WordPress in subfolder.
However, you can do http to https replace manually, with wp-cli:
Code:
sudo wget -nv https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/local/bin/wpsudo chmod +x /usr/local/bin/wpUSER='' # enter here hosting usernameDOMAIN='' # enter here domain, without http://, https:// and without www.alias php='php7.3' # change to desired php versioncd /home/$USER/web/$DOMAIN/public_html/sudo -H -u$USER wp search-replace "http://$DOMAIN" "https://$DOMAIN" --precise --all-tables --skip-columns=guidsudo -H -u$USER wp search-replace "http://www.$DOMAIN" "https://www.$DOMAIN" --precise --all-tables --skip-columns=guidsudo -H -u$USER wp cache flushservice memcached restartgrep -rl "http://$DOMAIN" ./ | xargs sed -i "s#http://$DOMAIN#https://$DOMAIN#g"grep -rl "http://www.$DOMAIN" ./ | xargs sed -i "s#http://www.$DOMAIN#https://www.$DOMAIN#g"
Statistics: Posted by myVesta — Tue Jun 08, 2021 2:08 pm