How to redirect 000webhostapp site to my actual site?


Hello! I just bought a .com domain and I use a cname record through cloudflare to point my domain to my 000webhostapp site. My 000webhost site appears higher on google search results and I would like my .com domain to appear, not my 000webhostapp site.

Is there any way to put a redirect on my site to go to my site so I don’t have these issues?


You’ll need some htaccess rules


Thanks :slight_smile: such as…?


Nevermind, I got it to work :slight_smile:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.000webhostapp\.com$   [NC]
RewriteRule ^ [L,R]