I bought my domain (let's say example.com
) from namecheap and added a subdomain to my blog hosted at heroku. The associated host record looks like this:
Type: CNAME
Host: blog
Target: tomyblog.herokuapp.com
Now when I go to blog.example.com
it acts like a redirect, it changes the address to the location bar to tomyblog.herokuapp.com
. I want it to retain blog.example.com
in the location bar since it's the address the user is supposed to see, not from where I'm serving the content.
I have read a few documentations where some suggested to use NS
records, but that's not available to namcheap, so I can't really test. It only offers A
, AAA
, SRV
and CNAME
types of records.