Redirect https to http with htaccess

RewriteEngine On
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [L,R=301]
  • redirect, https, tomcat, http, htaccess
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

 Leverage Browser setup

Below config file needs to be done in your apache httpd.conf or htaccess file: <IfModule...

 Redirect http to https with htaccess

http > httpsRewriteEngine On#First rewrite any request to the wrong domain to use the correct...

 Mask redirect

If you want your page to show the content of another file without changing the code in the url,...

 Redirect non www domain to www domain - without https and htaccess

RewriteEngine OnRewriteCond %{HTTP_HOST} !^www\.RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1...

 Redirect main domain to subdomain using htaccess

RewriteEngine On#Redirect main domain to subdomainRewriteCond %{HTTP_HOST} !^$RewriteCond...