Nicholas
Nicholas

Reputation: 119

Redirects HTTPS to HTTP via cPanel

How could I redirect HTTPS to HTTP via cPanel ? I have been trying to redirect it from .htaccess but it still not work.

Thanks

Upvotes: 1

Views: 1151

Answers (2)

Hiren Parghi
Hiren Parghi

Reputation: 1895

There are some specific cases when you want to redirect particular URL or a single website to be opened through HTTP instead of HTTPS. For that purpose you should add the following rewrite rule in your .htaccess file:

RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This will redirect your https to http.

Upvotes: 0

Shane Jones
Shane Jones

Reputation: 905

If you don't have an active SSL you may need to do the .htaccess redirect this way

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

Upvotes: 1

Related Questions