Hi all,
I created a subdomain to my website by following this tutorial https://support.cloudflare.com/hc/en-us/articles/200168756-How-do-I-add-a-subdomain-to-my-site-, after this when I tried to access my subdomain it says server ip address could not be found, ERR_NAME_NOT_RESOLVED but if I access my root domain then everything works.
Here my root domain redirects to the index.html page, whereas my subdomain redirects to domain/api route. Plus I am redirecting my website to https by following this https://support.cloudflare.com/hc/en-us/articles/200170536-How-do-I-redirect-all-visitors-to-HTTPS-SSL-