This solution article goes over how to set up a custom domain for only one organization. If you wish to set up subdomains for multiple organizations on your custom domain, please follow this solution article instead.
With the RSportz platform, your websites URL will be something like http://___.rsportz.com. You may own a domain that you would prefer to use. It is possible to set your domain up as a simple redirect, but it is better to set it up with DNS settings. It is a better way to redirect because it lets you link to pages while still using the custom domain like http://www.cutomdomain.com/pages/contact. If you are only using a simple redirect, your custom domain will always point to the home page. In this tutorial, we'll go over how to set up your custom domains DNS to work as your RSportz domain. We will be using a custom domain hosted by GoDaddy for this tutorial. If you are not using GoDaddy, the form will look slightly different, but the steps should be the same.
Setting your DNS Connections to point to RSportz:
- Log into your custom domain's provider's site, GoDaddy in this case, and find your domain.
- Click the Use My Domain button to start. On the next page, select "Connect to an existing site"
- On the Destinations page, scroll to the bottom and put the domain for your RSportz org in the box labeled "Forward To Any Site". In my example, I will be forwarding to http://dto.rsportz.com. Click next after you have entered your RSportz URL.
- We aren't done yet, we still need to set our DNS Connections to point to rsportz.com. To do this, click on Manage DNS.
- You need to add 2 Items to your DNS Connections.
The first is a *.rsportz.com CNAME. To add it, click "add" at the bottom of your Records list, select CNAME as the type, and put * as the host and points to rsportz.com. Set the TTL to 1/2 Hour and click save.
The second is an A record that points to RSportz. You can also modify the existing A record if you already have one. To add that, go to the bottom of your Records list, click "add", and select A from the dropdown. Host should be @ or the name of your custom domain. It should point to 18.104.22.168. Click save when you've changed those.
- With these added, your DNS should be properly configured.
Setting your Organization to use your Custom Domain:
- With our DNS Configured, we can go to our organization and log in to configure our custom domain settings on RSportz. When on the admin panel, click organization in the left sidebar to take you to the Organization Edit page.
On the Organization Edit page, there is an option near the top labeled "Use a Custom Domain?" Selecting this option will enable a field for your custom domain. Put your custom domain in the box and click test to make sure everything is configured properly. If the subdomain is correctly configured, click save at the bottom of the page to save. At this point, you should be able to use your custom domain to get to your website. If you get an error saying "This subdomain's CNAME is not pointing to RSportz", then you need to go back to GoDaddy or your DNS provider and check your configuration. Sometimes changes take a long time to propagate over the internet, so if your configuration seems correct but RSportz still says your domain is incorrectly configured, you may have to wait up to a day before your domain forwarding works.