How to show my domain URLs only?


I parked my domain name at 000webhost. How can I get visitors to see my domain name only? In other words, I don’t want my website directed to 000webhost. Thanks


You have to add this code to your .htaccess file

RewriteEngine on
RewriteCond %{HTTP_HOST} ^ [NC,OR]
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301,NC]

Replace with your old domain, and with your new domain.


Your code did not work.


Did you replace the ?


Yes, I did replace the URL with my own.


After adding that piece of code you then need to clear you browser cache and data to see some action. :slight_smile:
Else you can use “Private or Incognito” mode in browser to test.