Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Best way to redirect users from root domain to non-Cloudron sub-domain?

    Discuss
    redirect
    3
    4
    272
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      YurkshireLad last edited by girish

      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?

      1 Reply Last reply Reply Quote 0
      • subven
        subven last edited by subven

        1. Go to Cloudron Dashboard
        2. Click the gear wheel at social.mydomain.com
        3. In the App settings go to location and "Add a Domain"
        4. Select mydomain.com and confirm ^^

        2020-06-05 21_35_44-mjut_club.png

        1 Reply Last reply Reply Quote 3
        • Y
          YurkshireLad 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.

          JOduMonT 1 Reply Last reply Reply Quote 0
          • JOduMonT
            JOduMonT @YurkshireLad last edited by JOduMonT

            @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

            the one in red are the one I added manually.
            d379b010-4b43-42ef-a241-eb03921d4ecd-image.png

            1 Reply Last reply Reply Quote 3
            • First post
              Last post
            Powered by NodeBB