Domain forwarding

Published

Updated

🔁

All roads lead to www.

The fortrabbit domain forwarding service redirects requests for one domain to another with a 301, over HTTPS and with deep links intact. It mostly sends an apex domain such as example.com to its www subdomain.

Features

  • Redirects with '301 Moved Permanently'
  • Works over HTTPS
  • Keeps deep links like https://example.com/page
  • Works for www. and other subdomains

General usage

Domains registered with the dashboard have a target setting. Route the domain directly to the root path of an environment, or forward it to another domain.

Limitations

  • The target of a forwarded domain needs to be routed directly
  • It is not possible to forward a domain to a forwarded domain
  • Deleting a domain will delete domains forwarded to this domain as well

Forwarded apex domains

Adding a www domain in the dashboard also adds its apex domain. The www domain gets a CNAME record (host name), the apex domain an A record (IP address) that points to the forwarding service. Set both records with the domain provider.

Recommendations

  • Use www.domain.tld instead of just domain.tld in all links
  • Send your external traffic (e.g. advertisement clicks) to the www. domain
  • Configure your uptime checks with a URL to the www. domain

Alternatives

The forwarding service is optional. Other options:

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗