Hi there,
To change the site url and home url as https, replacing the SITE_URL and HOME_URL will not be sufficient.You will need to change it in the whole database.So you can use some online sql replace tool to replace the site url as https.
This one is recommended by ww.wp.xz.cn itself for replacing or changing the url.
And after you change the home and site url , whole site will become ssl encrypted but you will need to change all the scripts and css url to https if you have kept the static url as http://
Thanks.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
@regankhadgi I’ve redacted that URL site, thanks for helping but uploading your .SQL database file to a 3rd party web site is patently a really bad idea. On a “bad idea” scale of 1 to 10 that is about a 13. 😉
Yes, I know that’s in the Codex link but it should not be and that’s soon going to be corrected. 😀
*Drinks coffee*
@sarindufit Before you do any of that make sure your web site has a working https URL first. Once that’s confirmed (and it sounds like you’ve done that part) then make a full backup of your database and files.
http://codex.ww.wp.xz.cn/WordPress_Backups
http://codex.ww.wp.xz.cn/Backing_Up_Your_Database
http://codex.ww.wp.xz.cn/Restoring_Your_Database_From_Backup
Backups are your friend and should be respected. 😉
Once that’s done then give this a read as indicated byregan.khadgi.
http://codex.ww.wp.xz.cn/Moving_WordPress#Changing_Your_Domain_Name_and_URLs
See the part for updating your URLs? You want to search and replace all old URL http://your-url-here with https://your-url-here and the script on this page will safely let you do that.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
But please read the instructions very carefully and delete that script when done. If something goes wrong then you will have that backup to revert to.