Domains and email
Make every version of your address go to one place
www, non-www, http and https all load, sometimes as different sites.
- What you get
- One main address, single-hop redirects from the rest, and matching settings in your code.
- Paste it into
- Your AI tool, in your project
The prompt
My site answers on several addresses: with and without www, http and https, maybe the host's own subdomain too. I want one main address. Check what each version does today: the status code and where it redirects. Recommend which one to keep. Then set it up so every other version reaches it in a single redirect, at the host level where possible. Make the code agree: the canonical tag, the sitemap, the site URL in environment variables, sign-in redirect addresses and links in emails. Show me the before and after for each address, and list anything I need to change in a dashboard.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Domains and email
Your app’s emails land in spam
Sign-up and reset emails arrive late, in spam, or not at all.
Get an email address on your own domain
You want hello@yourdomain.com without breaking the website or the app’s emails.
Move your domain without downtime
You want to change registrar or DNS provider and fear the site and email going dark.
Sign-in breaks between your subdomains
The app is on one subdomain, the API on another, and cookies or requests get blocked.