Mobile app version of vmapp.org
Login or Join
Sims2060225

: How to point a GoDaddy subdomain to several Heroku apps with a trailing slash? I purchased a domain from GoDaddy like so: www.mydomain.com I created a subdomain as well: demo.mydomain.com I want

@Sims2060225

Posted in: #Godaddy #Heroku #Subdomain

I purchased a domain from GoDaddy like so:
mydomain.com
I created a subdomain as well:

demo.mydomain.com

I want to display all of my live demos on the demo.mydomain.com site like this:

demo.mydomain.com/project1

demo.mydomain.com/project2

I'm using Heroku to deploy different apps, so I know in the GoDaddy panel I can point demo.mydomain.com to a specific location, is it possible to point it to a specific location like demo.mydomain.com/project1? Right now the project I have is just pointing to demo.mydomain.com, however I want multiple apps to be found off that subdomain.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

1 Comments

Sorted by latest first Latest Oldest Best

 

@Samaraweera270

You cannot do that, directly, from the GoDaddy control panel. You can use the control panel to obtain similar results, if you are willing to set slightly different operations. You can make multiple, uniquely named, subdomains for the different apps. You can add those domains to the DNS Manager under the Domains menu, then use the Redirects under the Domains menu to do a premenant redirect to that URI. I.e.: Add the subdomain project1.demo pointing to the main IP, then redirect project1.demo.example.com to demo.example.com/project1. The redirect requires a protocol, so you'll need to choose whether or not to use TLS for each one before hand.

Not sure of you exact requirements, so you may not need to go through all this. If your apps can be set to point to demo.example.com/project1 as their root, then creating the directory project1 under the location set as the root of demo.example.com and creating the subdomain demo.example.com in the normal method: Subdomains on the Domains menu, could be enough.

The way their system does things, if demo.example.com is set to have a root of public_html/my_demo, then demo.example.com/project1 will load from public_html/my_demo/project1.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme