Title: How to make WordPress HTTPS
Last modified: August 30, 2016

---

# How to make WordPress HTTPS

 *  [bicepjai](https://wordpress.org/support/users/bicepjai/)
 * (@bicepjai)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/)
 * I used this page for making my url support https, but now i cant login to my 
   account.
    [https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/](https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/)
 * i need help to login to revert back or proper way to solve this problem.

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

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/#post-6439981)
 * I know nothing about tweaking WordPress for SSL, but here is some code that can
   change whatever you might currently have in the boxes at Settings > General:
 *     ```
       /*-either-*/
       /** @ near top of wp-config.php /*toggle on/off*
       define('WP_HOME','http://domain.com');
       define('WP_SITEURL','http://domain.com');
       /*-or-*/
       /** @ near top of wp-config.php /*toggle on/off*
       define('WP_HOME','http://www.domain.com');
       define('WP_SITEURL','http://www.domain.com');
       /*-end-*/
       ```
   
 * Select and edit one pair of lines or the other, then temporarily place a slash
   after `/*toggle on/off*` just above them to un-comment them.
 *  Thread Starter [bicepjai](https://wordpress.org/support/users/bicepjai/)
 * (@bicepjai)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/#post-6439985)
 * when i open
    [http://www.jayaramprabhudurairaj.com/wp-login.php](http://www.jayaramprabhudurairaj.com/wp-login.php)
   it takes me to [https://www.jayaramprabhudurairaj.com/404.html](https://www.jayaramprabhudurairaj.com/404.html)
 * on what page would i use your lines as shown below ?
 *     ```
       define('WP_HOME','http://jayaramprabhudurairaj.com');
       define('WP_SITEURL','http://jayaramprabhudurairaj.com');
       ```
   
 *  [ItalyExpat](https://wordpress.org/support/users/italyexpat/)
 * (@italyexpat)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/#post-6439986)
 * That guide is incomplete if your hosting setup isn’t correct, the first step 
   after installing the SSL certificate is to see if you can access your website
   using [https://](https://wordpress.org/support/topic/how-to-make-worpress-https/?output_format=md).
 * 1. Clear your cookies.
 * 2. Go into your web host’s control panel and open phpMyAdmin.
 * 3. Open the database for your affected WordPress website.
 * 4. Run the following query **changing YOURWEBSITE for your website’s domain**:
   `
   UPDATE wp_options SET option_value = 'http://YOURWEBSITE' WHERE option_name IN('
   siteurl', 'home');`
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/#post-6439988)
 * > on what page would i use your lines as shown below ?
   >     ```
   >     define('WP_HOME','http://jayaramprabhudurairaj.com');
   >     define('WP_SITEURL','http://jayaramprabhudurairaj.com');
   >     ```
   > 
 * /** @ near top of wp-config.php
 * The SQL ItalyExpat has posted is essentially the same via cPanel > phpMyAdmin,
   but I think you have also changed ‘WP_SITEURL’.
 *  Thread Starter [bicepjai](https://wordpress.org/support/users/bicepjai/)
 * (@bicepjai)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/#post-6440179)
 * I am hosting this from host gator, where/what/how to edit wp-login.php file and
   how to open the settings page ?
 * i would really appreciate if someone could help me with the steps, i
    dont even
   know where to start.
 *  [accuwebhosting](https://wordpress.org/support/users/accuwebhosting/)
 * (@accuwebhosting)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/#post-6440181)
 * Hi,
 * Start from scratch and refer following guide to install SSL certificate:
 * [http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/](http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/)
 * Thanks,
 *  Thread Starter [bicepjai](https://wordpress.org/support/users/bicepjai/)
 * (@bicepjai)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/#post-6440182)
 * Thanks ItalyExpat, i would have never figured that out 🙂

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

The topic ‘How to make WordPress HTTPS’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [bicepjai](https://wordpress.org/support/users/bicepjai/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/how-to-make-worpress-https/#post-6440182)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
