Best way to redirect users from root domain to non-Cloudron sub-domain?
-
wrote on Jun 5, 2020, 6:49 PM last edited by girish Jun 5, 2020, 7:59 PM
I have Cloudron installed at my.mydomain.com (for example) and I also have a site at social.mydomain.com . I don't have anything at mydomain.com , but I'd like any visitors to the root to be forwarded to social.mydomain.com . What's the best way to implement this?
-
wrote on Jun 5, 2020, 7:36 PM last edited by subven Jun 5, 2020, 7:37 PM
- Go to Cloudron Dashboard
- Click the gear wheel at social.mydomain.com
- In the App settings go to location and "Add a Domain"
- Select mydomain.com and confirm ^^
-
wrote on Jun 5, 2020, 11:26 PM last edited by
I already have mydomain.com listed as a domain. I guess because of how I installed Cloudron.
I have a non-Cloudron site installed at social.mydomain.com . Sorry, that part of my post may have been confusing or ambiguous.
-
I already have mydomain.com listed as a domain. I guess because of how I installed Cloudron.
I have a non-Cloudron site installed at social.mydomain.com. Sorry, that part of my post may have been confusing or ambiguous.
wrote on Jun 6, 2020, 2:19 AM last edited by JOduMonT Jun 6, 2020, 2:20 AM@YurkshireLad said in Best way to redirect users from root domain to non-Cloudron sub-domain?:
I have a non-Cloudron site installed at social.mydomain.com . Sorry, that part of my post may have been confusing or ambiguous.
Personally I simply go directly at your DNS manager (Namecheap, Cloudflare, GoDaddy, ...) than add the entry manually, such as you would do without Cloudron.
It also confused me a few weeks ago but at the end Cloudron only add and manage entries it need such as:
- A for my.
- MX for mail (if you active them and decide to receive email)
- TTX for DMARC, DKIM and SPF
in your case you will have to add something like
- Entry Type: A
- Name: @
- Content: TheIPofYour "social.mydomain.com "
- TTL: Auto
since we are all graphic bug, here a sample of my zone at Cloudron