Does wordpress automatically redirect HTTP to HTTPS?

DeadJoe

Elite Member
Joined
May 18, 2014
Messages
2,235
Reaction score
2,992
I installed an SSL certificate on my site and did NOT choose the option on my hosting where it says "Force all HTTP to HTTPS", but even then my website is being redirected to HTTPS.

The issue I am having is with redirect chains.

1) Wordpress is automatically redirecting to HTTPS
2) I want to redirect my single pages (300 +) first to https version WITHOUT wordpress first redirecting the site to https, this is causing issues because:

Wordpress --> http://www.site.com/article1 --> https://www.site.com/article1 (my redirect) ---> https://www.site.com/category1/article1.

I need to eliminate the step in between since I do not want this redirect chain, I want to first manually setup single page redirects and then do a full http -> https via the .htaccess file, however this bullshit auto-redirect is killing me.

Any pointers guys?

Thanks!
 
I installed an SSL certificate on my site and did NOT choose the option on my hosting where it says "Force all HTTP to HTTPS", but even then my website is being redirected to HTTPS.

The issue I am having is with redirect chains.

1) Wordpress is automatically redirecting to HTTPS
2) I want to redirect my single pages (300 +) first to https version WITHOUT wordpress first redirecting the site to https, this is causing issues because:

Wordpress --> http://www.site.com/article1 --> https://www.site.com/article1 (my redirect) ---> https://www.site.com/category1/article1.

I need to eliminate the step in between since I do not want this redirect chain, I want to first manually setup single page redirects and then do a full http -> https via the .htaccess file, however this bullshit auto-redirect is killing me.

Any pointers guys?

Thanks!
clear cache
check what your default was when you installed WP (http or HTTPS)
 
clear cache
check what your default was when you installed WP (http or HTTPS)


appreciate the response! I am checking via 301 redirect checkers so I believe it shouldn't be a browser cache issue, the default when installing WP was https. Is there a way around this? Thanks
 
what if you use Cloudflare and enable "Always HTTPS" and they're going to take care of everything
 
No it doesn't. You need a plugin for it. Actually 2, one is to "enable" SSL another to fix insecure connections..
 
what if you use Cloudflare and enable "Always HTTPS" and they're going to take care of everything
There's 2 tear of encryption, one is between your server and CF and another one is between CF and your visitor browser.
 
@legion85 and @sunnybay I don't think you guys understand my question at all. I can implement it myself, I am asking about a redirect chain.
 
What browser do you use? Chrome tends to redirect everything possible to https . Firefox does stuff differently. You need to test it with the different browsers.
 
First of all, set Development mode so all requests go directly. Purge all cache and kill all local browser cache as well! Then in CF switch OFF all the HTTPS related options, especially SSL 1.3 and always redirect to HTTPS.
 
If you are using Cloudlfare, use the following:
Code:
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

If you are not, check if any of your plugins causing the https enforcement,
the problem is most likely with the htaccess file or your browser cache
 
you can change the .htaccess and in the wordpress settings
 
Back
Top