Home » How to Redirect HTTPS to HTTP using .htaccess File?
How to

How to Redirect HTTPS to HTTP using .htaccess File?

In this article, I will discuss Redirect HTTPS to HTTP using .htaccess File. In some cases, you want to redirect your website from HTTPS to HTTP.

Redirect HTTPS to HTTP using .htaccess File

To redirect HTTPS to HTTP, you have to write some code in .htaccess file. If you don’t know what is .htaccess file and how to edit .htaccess file, read this article: About .htaccess file.

Finally, you need to add below code instructions into your site’s .htaccess file.

Force Redirect HTTPS to HTTP

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

As a result, your website will redirect HTTPS to HTTP.
Like: “https://example.com” to “http://example.com”

Releated Articles:

About the author

John Patel

John Patel is an experienced blogger and web developer. He always likes to learn something new. He is helping the new developers through Web development and SEO(Search Engine Optimization) tutorials, tips and tricks articles.

%d bloggers like this: