Search google problema https to http


Hello, i have a problem when i changed my hosting web. i had my web hosted in wordpress with ssl certificade, and my url was https://www but, now i am testing my web in 000webhosting with free account (don’t permit https) and google indexed my page with https. So i need to do a redirect https to http in my file htaccess, but i can’t do it ok, i have this code:

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

But doesn’t work.
Any idea?



U can use cloudflare for free SSL :smile:


Thanks for your answer, but i want to resolve from htaccess.


As 000webhost doesn’t provide SSL for custom domains so you can’t use “https”.

But you can use SSL(https) by connecting it to cloudflare…as @1microfix suggested.
Then you don’t have to use “https” to “http” redirection.


Ok, i will tried to do it. Thanks 1microfix and @akhilkumar332.


Did the solutions provided by @akhilkumar332 And @1microfix Solve your issue?


I still have doubts, how to fix it with htaccess. But what they told me is a possible solution.


Why use .htaccess?
I think cloudflare will be better in this case :slight_smile: