Setting up a custom domain
Whether you’re hosting on S-Drive or your own FTP host, you can point a domain name you own to your site. This article covers both scenarios.
Pointing a domain to S-Drive
S-Drive uses a CNAME record to link your domain to your S-Drive site.
-
Log in to your domain registrar
Go to the DNS management panel at the registrar where you bought your domain (Namecheap, GoDaddy, Cloudflare, etc.).
-
Add a CNAME record
Add a new DNS record:
Field Value Type CNAME Name / Host www(forwww.yourdomain.com)Value / Target yourproject.s-drive.ioTTL 3600 (1 hour) or your registrar’s default If you want the root domain (
yourdomain.comwithoutwww) to work, many registrars support an ALIAS or ANAME record that works like a CNAME for root domains. Check your registrar’s documentation. -
Add your domain in Site Designer
In Site Designer, go to Settings → Publish → Custom Domain. Enter your domain (e.g.,
www.yourdomain.com) and click Save. -
Verify the connection
Click Verify. Site Designer checks whether the CNAME record resolves correctly. If DNS hasn’t propagated yet, verification will fail — wait and try again.
HTTPS on S-Drive
HTTPS is automatic on S-Drive. Once your custom domain is verified, CoffeeCup provisions a free Let’s Encrypt SSL certificate for your domain. This usually takes a few minutes after DNS verification succeeds.
Pointing a domain to your FTP host
When publishing via FTP, your domain’s DNS is managed by your hosting provider or your registrar. The method varies by host.
Option 1: Change nameservers (recommended by most hosts)
Most shared hosting providers give you their own nameservers. Changing your domain’s nameservers at your registrar delegates all DNS control to your host:
- Log in to your domain registrar.
- Find Nameservers settings and replace them with your host’s nameservers (e.g.,
ns1.yourhostingcompany.com,ns2.yourhostingcompany.com). - Your host’s control panel (cPanel, Plesk, etc.) now manages all DNS records for your domain.
Option 2: Point an A record to your host’s IP
If you want to keep DNS at your registrar:
- Find your host’s server IP address in your hosting control panel.
- Add an A record at your registrar:
yourdomain.com→123.456.789.0(your host’s IP). - Add another A record for
www:www.yourdomain.com→ same IP.
Testing DNS propagation
Use these tools to verify your DNS records are live:
- dig (macOS/Linux terminal):
dig www.yourdomain.com CNAMEordig yourdomain.com A - nslookup (Windows):
nslookup www.yourdomain.com - Online tool: dnschecker.org shows propagation status across multiple locations worldwide
Avoid hardcoded domain references in your project
Before publishing to a custom domain, search your project for any hardcoded references to the old URL (e.g., absolute links to yourproject.s-drive.io). Replace them with relative paths or update them to your new domain. Hardcoded absolute URLs will point to the wrong location after a domain change.
In Site Designer, check:
- Internal links in navigation menus (prefer relative paths like
/aboutover absolutehttps://example.com/about). - Social share links that include your site URL.
- Open Graph and meta tags in Page Settings → SEO that include a full URL.