How to host a Wix export on Amazon S3

Short answer

To host a Wix export on Amazon S3, create a bucket with static website hosting, attach a public read bucket policy, and run aws s3 sync ./exported-site s3://my-bucket --delete. Wix says standard sites cannot be hosted elsewhere, so the copy is a saved render. Add CloudFront for HTTPS and replace Wix backend features.

Last reviewed

Key facts

  • Wix’s help says standard Wix sites cannot be exported to another host.
  • Public website access needs Block Public Access turned off and a bucket policy.
  • Missing objects return 404 and unreadable ones return 403, which can reveal what exists.
  • S3 website endpoints do not support HTTPS.

What a Wix export brings to Amazon S3

WebExport saves the rendered pages of a Wix site along with the scripts, fonts and images they need. S3 serves those files on its website endpoint. The saved pages draw themselves with JavaScript, so a complete set of script files is the main condition for a working copy.

Permissions are where most S3 attempts stall. Account level Block Public Access can override the bucket setting, and a missing policy leaves every request with a 403. Fix the policy first and the rest of the setup is mechanical.

Create the bucket and sync the folder

  1. Create a bucket and turn on static website hosting with index.html as the index document and 404.html as the error document.
  2. Turn off Block Public Access for that bucket and attach a bucket policy that allows s3:GetObject for everyone.
  3. Upload the folder with the AWS CLI, using --delete so removed pages disappear from the bucket.
  4. Put CloudFront in front of the website endpoint for HTTPS and your own domain.
terminal
aws s3 sync ./exported-site s3://my-bucket --delete

Redirects, headers and 404s on Amazon S3

The S3 website endpoint is HTTP only and has no header configuration, so security headers and HTTPS come from CloudFront. An S3 error document covers 4XX responses, and routing rules are limited to 50 per website configuration. For single pages you can set the x-amz-website-redirect-location metadata on an object, and the website endpoint answers it with a 301. Index documents work at every folder level on the website endpoint, but not through the REST endpoint.

Attach this policy to the bucket after you turn off Block Public Access for it. Replace my-bucket with your bucket name.

bucket-policy.json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "PublicReadGetObject",
      "Effect": "Allow",
      "Principal": "*",
      "Action": ["s3:GetObject"],
      "Resource": ["arn:aws:s3:::my-bucket/*"]
    }
  ]
}

Check the account level Block Public Access setting too, because it can override the bucket. A bucket that uses SSE-KMS cannot serve anonymous requests and needs CloudFront with origin access control instead. Anyone can read every object under this policy, so keep private files out of the bucket.

Wix output that needs fixing on Amazon S3

Wix export: what to check
In the Wix outputWhat to do on any static host
Scripts from parastorage.com and wixstatic.comWix pages are rendered by JavaScript. Confirm the local script files load and no request still goes to Wix.
Wix backend featuresWix says standard sites cannot be hosted elsewhere, so Bookings, Stores, Members and forms stay on Wix. Replace each one.
Image URLs with resize steps in the pathPaths such as /v1/fill/w_ and h_ are sized for the live layout. Check image sharpness at wide screens.
Mobile and desktop layoutsWix builds layouts for several widths. Test at phone and desktop width before you switch the domain.

Search the network tab for wixstatic.com and parastorage.com. Any request that remains means the page still depends on Wix. Replace contact forms, bookings, the store and member areas with outside services. Wix Studio owners should read the developer docs on code export, which Wix marked as early-stage when this page was reviewed. Test the layout at phone and desktop widths.

Forms and dynamic features

S3 serves files and nothing else. Use a form service, or send the form to an API Gateway endpoint backed by a function you write.

A hosted form service gives you an https endpoint to put in the form action. S3 cannot receive it, so no setting on the bucket helps.

What can go wrong

  • Anonymous read access is public by design. Do not store anything private in this bucket.
  • A 403 on every page almost always means Block Public Access or a missing policy.
  • Pages that still call Wix servers fail when the Wix plan ends.

Frequently asked questions

Why do I get 403 errors on my S3 website?

Block Public Access is still on, the bucket policy is missing, or objects were uploaded by another account. Fix the policy first and test the website endpoint again.

Can I host a Wix site on S3?

A saved copy, yes. Wix says standard sites cannot be hosted elsewhere, so WebExport saves the public pages as files and S3 serves them.

Do I need CloudFront with S3 for this?

For HTTPS and a custom domain, yes, because the website endpoint is HTTP only. CloudFront also lets you add headers.

What is the index document for a Wix export?

Use index.html. S3 returns it for the root and for any folder that has its own index.html, and the name is case sensitive.

Official documentation

Free tools for this job

Get the Wix files first

Paste your public Wix URL into the export form and download a ZIP you can deploy to Amazon S3. The Free plan covers 1 site, 5 exports a month, 15 pages and 20 MB per export. Professional is a $9.99 one-time purchase with unlimited pages.