Redirect HTTP to HTTPS - If your wordpress is on HTTPS

jdunhin

Active member
Registered
Joined
Feb 27, 2013
Messages
72
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
Registered
Joined
Feb 1, 2013
Messages
215
Points
0
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}
 
Older Threads
Newer Threads
Replies
15
Views
8,837
Replies
0
Views
3,476
Replies
25
Views
15,607
Replies
2
Views
6,098
Replies
5
Views
22,196
Latest Threads
Replies
0
Views
55
Replies
0
Views
48
Replies
0
Views
46
Replies
0
Views
43
Replies
0
Views
48
Recommended Threads
Replies
20
Views
14,732
Replies
5
Views
5,221
Replies
32
Views
16,316

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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