I have two apps app1 and app2 on 000webhost. Say app1 has domain www.example.com which uses cloudflare. I want subdomain.example.com to be the main domain of app2. How can I do this?
I have created a CNAME recored in cloudflare with values Name: subdomain, Value: app2.000webhostapp.com.
I also added entry to point subdomain.example.com to app2.000webhostapp.com in 000webhost app2's site settings
But when I go to subdomain.example.com. Website is loaded correctly, but link in the browser changes from subdomain.exmaple.com to app2.000webhost.com. Its like some kind of redirection is happening. I don't want the link to change.