For some reasons i am trying to Redirect all traffic coming to port 443 to port 80 i.e from https to http and kindly this is not duplicate because i searched a lot but did not found any working solution. I created the following .htaccess file in root folder
RewriteEngine On
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(.*)$ http://www.localhost.com/$1 [R,L]
this is not working but my .htaccess file is being read correctly i confirmed it by running following tests
- I put random garbage character and Server shows error 500
- The reverse of above code is working i.e Properly redirecting from http to https
If any one has experienced this before then kindly guide me to the solution
Best Regards!