Redirect from HTTPS to HTTP – Force HTTP

 In blog, web design

There are some  scenarios when you want to redirect a website address to be opened through HTTP instead of HTTPS.
To do that,  you can add the following htaccess directives  in your website’s .htaccess file:

 

# BEGIN Force HTTP
RewriteEngine On
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]
# END Force HTTP
Recent Posts

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Start typing and press Enter to search