Portal Home > Knowledgebase > Articles Database > Force Redirect https to http
Posted by v123shine, 08-07-2015, 09:31 PM Good day, Today I found my site in Google search have https and I never use SSL in my site. My question is, how to force Redirect https to http, can someone help me, please! Kind regards, Shine
Posted by Srv24x7, 08-08-2015, 10:21 AM Hi, Try adding any one of the below 2 codes in the .htaccess file in the document root directory of domain. ------ Code 1 ------ RewriteEngine On RewriteCond %{SERVER_PORT} 443 RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] OR ------ Code 2 ------ RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Add to Favourites Print this Article