April 23, 2019
How to Redirect from HTTPS to HTTP

In this post, We going to see how to redirect from HTTPS to HTTP request. Each and everyone has specific requirements, So here you want to redirect a particular website to be opened through HTTP instead of HTTPS. Based on this here we have two option to redirect HTTPS to HTTP. Add the following code in your .htaccess to redirect.
Redirect HTTP to HTTPS
1 2 3 |
RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} |
Redirect HTTP to HTTPS (Optional)
1 2 3 |
# Redirect HTTPS to HTTP RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This above codes will redirect you “https://yourdomain.com” to “http://yourdomain.com”.
.htaccessawscloud serverserver
Mraj
Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts. If you have any questions let me drop an email with the article name to the following email id: [email protected]