I have a multi-tenant app on Heroku where each tenant has a portal (micro-site) that lives in a sub-directory (e.g. http://www.example.com/portals/foo-bar
). My domain is hosted by GoDaddy and I want each tenant to be able to create a subdomain on their site for their portal to live in. I'm trying to create my own subdomain to test the process, but I can't figure out how to link a subdomain to a subdirectory on GoDaddy. I would presume that the process is pretty similar across domain registrars, but I'm not sure.
If I try creating an A record or a CNAME, it will only accept an IP address. I could create a simple redirect, but I want my user to stay on the subdomain as they interact with the portal, rather than simply be redirected from http://portal.foo-bar.com
to http://www.example.com/portals/foo-bar
.
Is this possible, and if so, how?
Answer
I think you would need to create subdomain in GoDaddy control panel for each domain and specify subdirectory for this subdomain and you will also need CNAME record in your DNS.
No comments:
Post a Comment