Changing the domain
How to move a Flute 2.0 site to a new domain: the change in your flute-cms.com account, DNS, the site address in settings and paid modules for the new domain.
The site's domain is changed in your flute-cms.com account, and the engine follows on its own. On the next sync the site learns the new domain, and once you change the site address in settings it downloads paid modules built for the new domain. The site does not close meanwhile: until the move is finished, modules keep working on the old domain.
You can change the domain a few times a year. The account shows how many changes are left under the new domain field.
If the site moves to another server as well, move it with this guide first and change the domain after that.
Change the domain in your account
In your account open the site, go to the Settings tab and press "Change" in the "Domain" row. In the "Change domain" window enter the "New domain" and press "Change domain". If the account asks you to "Confirm the new domain", add the TXT record it shows to the new domain's DNS. As soon as the record shows up, the site moves.
After the change the account gives you a day and a half to point DNS at the new domain and change the site address in the engine. Until then modules keep working on the old domain.
Point the new domain at the server
Add an A record for the new domain with the server's IP, then add the domain to the site in your hosting panel or web server config and issue an HTTPS certificate for it.
Change the site address
Open AdminSettings and enter the new address with https:// in "Site address", for example https://new-site.com. The admin panel asks you to confirm your password.
Until this step the admin home and the "Environment" tab show "The site's domain on the platform is now …. Change the site address in settings and paid modules will download again. Until … they keep working as before.". The date in it is exact: change the address before it.
Wait for the packages
Within a minute the scheduler notices the new address and downloads paid modules for the new domain. Check AdminErrorsEnvironment: the "Package build" row should read "Packages are built for this server". If it says "The platform is still building the packages. The site will try again in … min.", wait: the site tries again on its own.
Links in emails, social sign-in and payment returns are built from the site address. After the change, enter the new domain wherever the old one was set outside the site: in the apps of Steam, Discord and other sign-in methods and in your payment providers' dashboards. You can keep the old domain on the server and redirect it to the new one so old links do not break.
Troubleshooting
Look up other messages in the error search.
The site runs on …, but the licence is issued for …. Change the domain in your account or set the old site address back in settings.
The site address was changed in settings, but the domain in your account was not. If the site really moved, change the domain in your account. If the address was changed by mistake, set the previous one back in "Site address".
| Message | What to do |
|---|---|
| "Modules … are built for the previous domain. They download again once the site address changes to …. Until … they keep working as before." | change "Site address" to the new domain |
| "No domain changes left. You can change it again on …" | wait for that date or write to flute-cms.com support |
| "Confirm the new domain first" | add the TXT record the account shows and wait until DNS sees it |
| "Packages not downloaded: …. The reason is in the error log." | open the error log, fix the cause and press "Download again" |