I have bought my own domain and parked it to my 000webhost website, but how can I make it so if someone enters the 000webhost URL, it would get directed to my own domain?
Try this
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
Replace the first example.com with your 000webhost subdomain, and the second one with your new domain.
2 Likes
It works! Thank you very much!
1 Like