Title: Website goes from HTTPs to HTTP on initial load
Last modified: September 12, 2024

---

# Website goes from HTTPs to HTTP on initial load

 *  [Samuel](https://wordpress.org/support/users/samxcode/)
 * (@samxcode)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/)
 * Hi there,
   I am encountering an error with my website where on loading, when you
   explicitly request [http://www.aider.sk](http://www.aider.sk) or aider.sk ( without
   prefixing it with https or http) or when requesting exact page in the same manner(
   [http://www.aider.sk/blog](http://www.aider.sk/blog) ) the website **sometimes**
   goes from HTTPs>HTTP>HTTPs and only then it gets finally loaded.This do not happen
   on all requests, only some of them.**What I have tried**:
    - follow this guide : [https://blog.hubspot.com/website/wordpress-force-https](https://blog.hubspot.com/website/wordpress-force-https)(
      and many other similar guides)
    - disable plugins that are not necessary ( cache, pop up builders)
 * **Steps to reproduce:**
 * I will provide the steps to reproduce the error on my website
    - Open incognito mode > in chrome preferably
    - go straight to website [http://www.aider.sk](http://www.aider.sk) or aider.
      sk
    - if this does not occurs on the first try.
 * Thank you for your help.
    -  This topic was modified 1 year, 8 months ago by [Samuel](https://wordpress.org/support/users/samxcode/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebsite-goes-from-https-to-http-on-initial-load%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18010188)
 * I can’t understand it, I always end up in the SSL web. If it only happens sometimes
   according to you, it’s even harder to understand. However, I don’t see WordPress
   itself as the reason here. You have entered the URLs correctly there. Could it
   also be due to the cache of the browser you are using? That would be the only
   reason I could see here.
 *  Thread Starter [Samuel](https://wordpress.org/support/users/samxcode/)
 * (@samxcode)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18010986)
 * I am able to replicate it fairly easily, I can not upload video here, i uploaded
   it to imgur:
 * [https://imgur.com/a/H85DtOI](https://imgur.com/a/H85DtOI)
 * Yes, it is harder to understand, I do not understand it also. I was told by the
   provider that they did everything they could and that the issue is on the website
   or in its settings. But as I said, I followed the guides, double-checked the 
   settings, still no solution.
 * Also, cache plugins are turned off, and on the provider side, I disabled the “
   http cache.”
 * The cache of the browser should not be an issue as I always access and test this
   in incognito mode.
 * Thanks for your help.
 *  Thread Starter [Samuel](https://wordpress.org/support/users/samxcode/)
 * (@samxcode)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18011007)
 * From network tab [https://imgur.com/a/p9fcwvC](https://imgur.com/a/p9fcwvC)
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18011199)
 * Interesting. I’ve tested a few things now and haven’t even had this effect. I
   also did the test with direct HTTP connections. No cache in the way. There was
   never a redirect to http there either.
 * If it happens, you should be able to see who is causing it in addition to the
   redirection in the HTTP header. If it was WordPress, it would be there. If there’s
   nothing there, it’s probably something from the server.
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18012031)
 * I’m unable to reproduce this at my end either.
 * For the specific URL tested in the video, all my tests (curl, local browser and
   external online tools) consistently produced: `https://www.aider.sk/blog -301-
   https://aider.sk/blog -301- https://aider.sk/blog/`
 *     ```
       >>> https://www.aider.sk/blog
       Status:	301 Moved Permanently
       Code:	301
       Server:	openresty
       Date:	Fri, 13 Sep 2024 05:12:03 GMT
       Content-Type:	text/html; charset=iso-8859-1
       Content-Length:	229
       Connection:	close
       Location:	https://aider.sk/blog
       alt-svc:	h3=":443"; ma=86400
   
       >>> https://aider.sk/blog
       Status:	301 Moved Permanently
       Code:	301
       Server:	openresty
       Date:	Fri, 13 Sep 2024 05:12:05 GMT
       Content-Type:	text/html; charset=UTF-8
       Content-Length:	0
       Connection:	close
       X-Redirect-By:	WordPress
       Location:	https://aider.sk/blog/
       alt-svc:	h3=":443"; ma=86400
   
       >>> https://aider.sk/blog/
       Status:	200 OK
       Code:	200
       Server:	openresty
       Date:	Fri, 13 Sep 2024 05:12:09 GMT
       Content-Type:	text/html; charset=UTF-8
       Connection:	close
       Vary:	Accept-Encoding
       Link:	<https://aider.sk/?p=286>; rel=shortlink
       alt-svc:	h3=":443"; ma=86400
       ```
   
 *  Thread Starter [Samuel](https://wordpress.org/support/users/samxcode/)
 * (@samxcode)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18013156)
 * HI, Thanks all for investigating.
   I was talking today with our hosting provider,
   to see if the error is on their side. – Meaning happening on top of our WordPress,
   maybe on DNS routing level or something.But got reply, same as from you, that
   they are not able to replicate it. The scenario seems to be happening only to
   me, meaning that there could have been this problem earlier, but I fixed it in
   the meantime.The support crew of our hosting provider suggested that the problem
   is **local** happening only on my machine , and the problem could be the browser
   cache and/or the router cache, which I have not heard of.So just to confirm the
   last time with you guys, when requesting page: www. aider. sk/blog – you are 
   not getting redirects to : https>http>https ? If really, that is the case the
   issue can be local to my machine.Thanks for help.
    -  This reply was modified 1 year, 8 months ago by [Samuel](https://wordpress.org/support/users/samxcode/).
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18013982)
 * Yes, that doesn’t happen with me. I also think it’s most likely that it’s caused
   locally in your case. Why don’t you test it on your cell phone or from another
   computer?
 *  Thread Starter [Samuel](https://wordpress.org/support/users/samxcode/)
 * (@samxcode)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18018984)
 * HI all,
   So regarding my issue, it still persist, i tried connecting via different
   network and it did not change anything. the issue with https > http > https redirection
   on loading in incognito window still persist.Now i turned on cache plugin, which
   i do not think can worsen this issue.But also, as we stated it seems to be not
   an error caused by wordpress.Please could you test the page loading one last 
   time? Thanks a lot.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18018998)
 * Still not happening for me, despite repeated attempts.

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

The topic ‘Website goes from HTTPs to HTTP on initial load’ is closed to new replies.

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [routing](https://wordpress.org/support/topic-tag/routing/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/website-goes-from-https-to-http-on-initial-load/#post-18018998)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
