Custom Domain & Login Page

Looking to use your own domain name with Sonoran CAD? We've made it easy for you!

The custom login page allows your community members to register, sign-in, and access your CAD all on your own domain! In addition, user signups and password recovery emails have your custom branding. Logging in also takes you directly to the community, instead of having to select the community at the menu.

Sonoran CAD Custom Login Page Example

1. Enter your Desired Domain

Your Sonoran CAD login page can be configured to display on your root custom domain or on a subdomain, such as example.com or cad.example.com.

2. Add DNS Records

In your domain registrar’s DNS management panel, add two CNAME records using the name and content provided in Sonoran CAD, and add one TXT record to verify domain ownership.

DNS Example

The example below shows the TXT record verifying the community ID, and two CNAME records verifying domain ownership.

3. View your Custom Login Page

Users can now visit this custom domain to view the CAD with a custom login page, including receiving your branded emails for signups and password recovery messages.

iFrame Method

If you are unable to use the DNS method, you can also host an HTML page that renders the CAD in an iFrame.

1. Download the HTML File

You can download a ZIP of the HTML page here.

2. Edit the HTML File

Replace YOUR_COMMUNITY_ID_HERE in the index.html file with your community ID.

3. Host the HTML File

Now that you've saved the custom URL inside of the HTML file, you can host this with your own domain on your own web server. Users can now register and access your CAD from your custom domain, and will even receive your custom branded emails for account actions.

In-Game Tablet

If you wish to use a custom login page when using the in-game Tablet resource, you can set a convar in your server.cfg. The easiest way to show your custom login page is to use a query string.

"https://sonorancad.com/#/?comid=YOUR_COMMUNITY_ID_HERE"

Simply replace YOUR_COMMUNITY_ID_HERE in the URL with your community ID. EX: https://sonorancad.com/#/?comid=midwestrp

Add the following to your server.cfg before starting the tablet resource:

setr sonorantablet_cadUrl "YOUR_URL_HERE"

Fill in with your actual URL above with the comid you want.

Last updated

Was this helpful?