Change a website's domain
Changing a website's domain swaps its primary address, for example when you move a site from a temporary Templ address to your real domain, or from one domain to another. Templ runs the database search-replace for you as part of the change.
You need to add the domain in the Templ Panel, before you go ahead with the steps below.
Changing the domain here swaps the website's primary domain.
It does not redirect your other domains to it.
If you want other domains to point to this site, see Additional domains.
Change the domain
- Click on Websites in the left menu in the Templ Panel.
- Click on the website that you want to change domain for.
- Click on Edit Website Details.

- Under Domain, select a domain in the drop-down list.

- Scroll all the way down and click Continue, that's it!
When you change a domain for a website, a "search-replace" is automatically performed in the database from the old domain name to the new one. If you are using cache on your website, you may need to clear the cache and check that all links are pointing correctly.
How long does it take?
How long the change takes to be visible depends on where the domain's DNS is managed.
- DNS managed by Templ - the necessary DNS records are updated automatically and the change usually takes effect within a few minutes.
- External DNS, A record change - typically minutes to a few hours, bounded by the record's current TTL.
- External DNS, nameserver change - can take up to 48 hours to propagate globally. To make the switch faster, we recommend lowering the TTL and updating the DNS records at your current DNS host before changing nameservers, so the cutover is bounded by your current TTL rather than full nameserver propagation.
Related guides:
- How to update your name servers
- Additional domains - point other domains to this site