php - Redirect site from https to http using htaccess or any other way -


i tried answers mentioned on search engine redirecting site https http these not working me.

i tried: how redirect https http? , http://wp-mix.com/htaccess-redirect-http-to-https/ methods here

let me explain little more here:

before site (combustiondepot.com) separate site , having ssl installed there. working fine time. after deleted main combustiondepot.com site , make addon domain our main domain industrialstores.com.

now site working fine except https. whatever changes making in htaccess or php these of no use.

the examples above work if have .htaccess allowed in config. allow override

if want using code assuming using php.

<?php if  ( $_server['https'] )     {             $host = $_server['http_host'];             $request_uri = $_server['request_uri'];             $good_url = "http://" . $host . $request_uri;              header( "http/1.1 301 moved permanently" );             header( "location: $good_url" );             exit;     } ?>  

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -