Title: Assigning HTTPS to Site_Url &amp; Home_Url
Last modified: August 22, 2016

---

# Assigning HTTPS to Site_Url & Home_Url

 *  [sarindufit](https://wordpress.org/support/users/sarindufit/)
 * (@sarindufit)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/assigning-https-to-site_url-home_url/)
 * Hi all,
 * I have a slight issue with changing the SITE_URL and HOME_URL of wordpress installation.
   I want to assign a “htttps://” url to both the aforementioned parameters. When
   do so, some of the stylesheet and javascript links come out as “[http://&#8221](http://&#8221);
   URLs. Is there any issue with assigning “[https://&#8221](https://&#8221); URLs
   to SITE_UTL and HOME_URL?
 * Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Regan Khadgi](https://wordpress.org/support/users/regankhadgi/)
 * (@regankhadgi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/assigning-https-to-site_url-home_url/#post-5827177)
 * 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](https://wordpress.org/support/topic/assigning-https-to-site_url-home_url/?output_format=md#)
   one is recommended by wordpress.org 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](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years, 3 months ago](https://wordpress.org/support/topic/assigning-https-to-site_url-home_url/#post-5827183)
 * [@regankhadgi](https://wordpress.org/support/users/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](https://wordpress.org/support/users/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.wordpress.org/WordPress_Backups](http://codex.wordpress.org/WordPress_Backups)
   
   [http://codex.wordpress.org/Backing_Up_Your_Database](http://codex.wordpress.org/Backing_Up_Your_Database)
   [http://codex.wordpress.org/Restoring_Your_Database_From_Backup](http://codex.wordpress.org/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.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs](http://codex.wordpress.org/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/](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.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Assigning HTTPS to Site_Url & Home_Url’ is closed to new replies.

## Tags

 * [home_url](https://wordpress.org/support/topic-tag/home_url/)
 * [site_url](https://wordpress.org/support/topic-tag/site_url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/assigning-https-to-site_url-home_url/#post-5827183)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
