Discord invite links work fine, but discord.gg/xK9mRt2 isn't exactly memorable. If you own a domain name, you can set it up so that a clean URL like discord.yourcommunity.com or yourcommunity.com/discord redirects straight to your server.
There's no magic here — you're just setting up a redirect from a URL you control to your Discord invite. There are two ways to do it depending on what you want the link to look like.
Option A — Subdomain redirect: discord.yourcommunity.com → your Discord invite
Option B — Path redirect: yourcommunity.com/discord → your Discord invite
Which one you can use depends on what you have available. If you just own the domain and it doesn't have an active website on it, Option A (subdomain) is easier and works for everyone. Option B requires a website already hosted at your domain.
Before doing anything else, grab your Discord server's invite link. In Discord, right-click your server icon → Invite People → create a permanent invite link and copy it. It'll look like https://discord.gg/yourcode.
Option A: Subdomain redirect (discord.yourdomain.com)
This approach uses something called a DNS record to point a subdomain — like discord.yourcommunity.com — directly to your Discord invite. You don't need a website for this. You just need access to your domain's DNS settings, which you'll find wherever you registered the domain (Namecheap, GoDaddy, Cloudflare, Porkbun, etc.).
Log in to your domain registrar. Go to the website where you bought the domain and find the DNS settings. This is sometimes labeled "DNS Management," "Manage DNS," "Advanced DNS," or just "DNS."
Create a CNAME record. In the DNS records list, add a new record with these values:
- Type: CNAME
- Name/Host:
discord(this creates thediscord.yourdomain.comsubdomain) - Value/Target: your redirect service's CNAME target (see next step)
- TTL: leave it at the default, or set it to 3600
What's a CNAME? A CNAME record is like a sign that says "this address is actually the same as that other address." The catch is that CNAMEs point to another domain, not directly to a URL — so you can't point one straight at
discord.gg. You need a middleman redirect service to do the final hop.Set up a redirect service. A few free options can handle this for you:
Using Cloudflare (recommended if your domain is already on Cloudflare): Go to your domain in the Cloudflare dashboard → Rules → Redirect Rules → create a rule that matches
discord.yourdomain.comand redirects to your Discord invite URL. No separate CNAME needed — Cloudflare handles both.Using a free redirect service: Services like Redirect.pizza let you create URL redirects for free. You enter your subdomain and the Discord invite URL, and they give you a CNAME target to put in step 2.
Wait for DNS to update. After saving the DNS record, it can take anywhere from a few minutes to 48 hours to fully take effect worldwide. Usually it's under an hour. You'll know it's working when visiting
discord.yourdomain.comin a browser takes you to your Discord server.
Option B: Path redirect (yourdomain.com/discord)
This approach redirects yourdomain.com/discord to your invite link. It requires your domain to have an active website, because you need a web server to serve the redirect. How you set this up depends on how your site is hosted:
Squarespace, Wix, or Webflow — Look for "URL Redirects," "301 Redirects," or "Custom Redirects" in your site settings. Create a redirect from
/discordto your full Discord invite URL and save it.WordPress — Install the free Redirection plugin (available in the WordPress plugin directory). Go to Tools → Redirection and add a redirect from
/discordto your Discord invite URL.Netlify — Add a file called
_redirectsto your site's publish folder with this line:/discord https://discord.gg/yourcode 301Vercel — Add this to your
vercel.jsonfile:{ "redirects": [ { "source": "/discord", "destination": "https://discord.gg/yourcode", "permanent": true } ] }Shared hosting (cPanel) — In your cPanel dashboard, find the Redirects tool. Set it to redirect
yourdomain.com/discordto your Discord invite URL and choose "301 (Permanent)."
Which method should you use?
If you're not sure, go with Option A (subdomain). It doesn't require a website, it works with any domain, and a URL like discord.yourcommunity.com looks clean and intentional. Save the path-based redirect for if you already have a website and want the invite URL to feel like part of it.
Either way, once it's set up, you have a link that's actually worth putting in a bio, a YouTube description, or on a business card — and one you can keep even if you ever change your Discord invite code.
If you want to link a domain to your personal Discord profile instead — to show it as a verified connection on your account — see How to link a domain name to your Discord profile.