Title: why i can&#039; install on https
Last modified: August 22, 2016

---

# why i can' install on https

 *  [xxx123xxx](https://wordpress.org/support/users/xxx123xxx/)
 * (@xxx123xxx)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/why-i-can-install-on-https/)
 * i am have wordpress around 15-20 sites.
    is good & best cms. but. 1 have 1 question.
   why i can’t install wordpress on https. LIKE [https://mydomain/wp-admin/setup-config.php](https://mydomain/wp-admin/setup-config.php).
   HTTPS alway redirect to http and then this look find if normal install http.
 * Option on wordpress on working
    Redirect Loop ALWAYS. clear cookies and wait 
   3 days
 * is not working

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

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years, 7 months ago](https://wordpress.org/support/topic/why-i-can-install-on-https/#post-5413043)
 * Do you have a link for us to look at? I’ve installed WordPress on both http and
   https and while it works there may be some additional steps needed.
 * Also give this handbook a look.
 * [https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/](https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/)
 *  Thread Starter [xxx123xxx](https://wordpress.org/support/users/xxx123xxx/)
 * (@xxx123xxx)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/why-i-can-install-on-https/#post-5413127)
 * thannk you jan but Redirect Loop
    [http://i.imgur.com/T5CXpTM.png](http://i.imgur.com/T5CXpTM.png)
   clear cookies wait 3 days not working anymaore no login page wp-admin/setup-config.
   php page
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years, 7 months ago](https://wordpress.org/support/topic/why-i-can-install-on-https/#post-5413128)
 * > Do you have a link for us to look at?
 * It really often helps. 😉
 *  Thread Starter [xxx123xxx](https://wordpress.org/support/users/xxx123xxx/)
 * (@xxx123xxx)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/why-i-can-install-on-https/#post-5413135)
 * working
 * /* That’s all, stop editing! Happy blogging. */
    if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’]
   == ‘https’) $_SERVER[‘HTTPS’]=’on’;
 * define(‘WP_HOME’,’[https://yousite.com&#8217](https://yousite.com&#8217););
    
   define(‘WP_SITEURL’,’[https://yousite.com&#8217](https://yousite.com&#8217););
 * on wp-config.php
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years, 7 months ago](https://wordpress.org/support/topic/why-i-can-install-on-https/#post-5413150)
 * Try taking those lines out including these lines.
 *     ```
       /* That's all, stop editing! Happy blogging. */
       if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
       $_SERVER['HTTPS']='on';
   
       define('WP_HOME','https://yousite.com');
       define('WP_SITEURL','https://yousite.com');
       ```
   
 * Without those lines and doing nothing else try instead to add these line.
 *     ```
       define('FORCE_SSL_ADMIN', true);
       ```
   
 * Now visit your site via `http://your-URL/wp-admin/` and you should be redirected
   to the SSL version of that page. Does that work when you do that?

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

The topic ‘why i can' install on https’ is closed to new replies.

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/why-i-can-install-on-https/#post-5413150)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
