How can I use subdomains?

My domain is pointing to my 000webhost site (
Now I want to use a subdomain. In the DNS settings, I added the record “sub” as an CNAME alias to, and I want to rewrite (not redirect!) this with htacess (on the 000webhost server) to
But when I enter I get an error from 000webhost, “this website is not registered yet”.
How can I solve this? Which site do I actually see when I type in - is it which isn’t registered?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.