Menu
Moving from another host
Bring a static site from Netlify, Cloudflare Pages or a similar host to weird: what to copy over unchanged, what differs, and the order that avoids a gap.
A static site (a folder of pages, styles, scripts and pictures) moves to weird as it is. If it was built by a tool on the other host, build it on your computer and take the folder the build makes.
What carries over unchanged#
- The folder itself, with
index.htmlat its root. _redirects: weird reads the same file at the root of the site. Moved pages (301,302), placeholders (:name), the trailing*with:splat, rewrites (200) and your own error pages (404) work the same (the format)._headers: the same format (a path pattern, then indentedName: valuelines), for the headers in the table.
What differs#
Read your two files once against this list; the gateway refuses a file it cannot apply whole, so a difference shows as an error, never as a rule quietly ignored (When a file is wrong).
- Forced rules (
200!,301!), which apply over an existing file, are not accepted: a rule applies only where no file exists. Delete the file instead. - A rewrite to another site (
/api/* https://api.example.com/:splat 200), a proxy, is not accepted: a200rule names a page of your own site. Call the other site from the browser, with CORS on its side. - Conditions on query parameters, countries, languages, roles or cookies (extra fields after the status) are not accepted: one line is
from to [status]. - A
*in the middle offrom(/docs/*/old) is not accepted: a*only as the whole last segment (/docs/*). - Redirects in a configuration file (
netlify.toml,wrangler.toml) are not read: move those rules into_redirects. - Headers outside the allow-list (
Set-Cookie,Vary,Location) are dropped; the rest of the file applies. - Several
*in a_headerspattern are not accepted: one*a pattern. - Form handling, serverless or edge functions and password protection are not offered for a stored site. A server runs your own code; locked content keeps files behind a password.
- The host's analytics have their counterpart without a script: every site gets a traffic summary, and detailed statistics can be switched on per site (Traffic statistics).
- A site address on the host's domain becomes a free address on
e-weird.ro, or your own domain.
The order of the move#
Upload the folder with both files and check it at the content's own address the upload prints (Check before you publish):
$ weird storage add ./siteHost the domain's DNS on weird, if it is not yet:
weird dns create example.ro, then set the nameservers you are given where the domain is registered (DNS). Copy over any other records the domain needs first (mail, verification records), so nothing stops working when the nameservers change.Attach the hostname to the content:
$ weird storage domains attach www.example.ro <cid>An attach never overwrites a record: if the zone already has an address record for that name (copied from the old host), delete it first, then attach.
Keep the old site until the new one answers at your address everywhere; then remove it from the other host.
To move the domain itself to weird later, see Domains.