Redirect HTTP to HTTPS - If your wordpress is on HTTPS

jdunhin

New member
Joined
Feb 27, 2013
Messages
93
Points
0
If you have a Wordpress installation on https then you want the http to redirect to https.

In your public_html (not in public_ssl) put this html file:

Create "name.html"
Insert this code and replace domain with website name.
HTML:
<meta http-equiv="Refresh" content="0;URL=https://domain.com" />
There are other methods but this is very easy to do.
 

Inquestor

Well-known member
Joined
Feb 1, 2013
Messages
495
Points
63
Awesome tidbit of code jdunhin! This could be helpful for a few people here.

I prefer to use .htaccess to perform my re-directs and at times when necessary for SEO 301 Header redirects. For some reason I just don't believe in meta redirects.

Here is the .htaccess code I use

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 
Newer threads
Replies
6
Views
4,011
Replies
5
Views
2,965
Replies
9
Views
3,630
Replies
10
Views
4,568
Latest threads
Replies
2
Views
88
Replies
1
Views
179
Replies
5
Views
385
Replies
11
Views
527
Replies
2
Views
229
Recommended threads
Similar threads

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top