How to host a Squarespace export on Cloudflare Pages
To host a Squarespace export on Cloudflare Pages, unzip the WebExport download and run npx wrangler pages deploy ./exported-site --project-name my-site. Squarespace has no code export, so the copy is a saved render. Use _redirects for dated blog paths, write 301 on each line, and replace Squarespace form blocks.
Last reviewed
Key facts
- Squarespace’s own export makes an XML file for WordPress, not a deployable site.
- Pages supports placeholders such as :year and splats in _redirects.
- Past 2,100 redirect rules you need Cloudflare Bulk Redirects.
- Direct upload is the simplest route for a copy that changes rarely.
What a Squarespace export brings to Cloudflare Pages
WebExport saves the Squarespace page hierarchy, template stylesheets, gallery scripts and images from the published site. Cloudflare Pages serves them without a build. Portfolio and service sites are the best fit, since their pages change rarely and a re-export takes a minute.
Blogs are where the redirect work sits. Squarespace paths can include year, month and day, and a site with several years of posts can have hundreds of them. A single placeholder rule covers all of those at once and uses one line of your 2,000 static redirect budget.
Deploy with Wrangler direct upload
- Unzip the download into a folder that holds index.html at the top.
- Create a Pages project once, then deploy the folder to it.
- Open the pages.dev address the command prints and test a few URLs.
- Attach your domain from the project’s custom domains tab.
npx wrangler pages project create my-site
npx wrangler pages deploy ./exported-site --project-name my-siteRedirects, headers and 404s on Cloudflare Pages
Cloudflare Pages reads _redirects and _headers from the output directory. A redirect line is the source, the destination and an optional status code, and the default is 302, so write 301 for permanent moves. The limits are 2,000 static and 100 dynamic redirects, with each declaration capped at 1,000 characters, and 100 rules in _headers. If the folder has no 404.html, Pages answers unknown paths with the root index.html, so add a 404.html to get real 404 responses.
This _redirects file handles dated posts with placeholders, sends the old journal folder to the blog and gives each line an explicit status.
/blog/:year/:month/:day/:slug /blog/:slug 301
/journal/* /blog/:splat 301
/shop https://shop.example.com 302The first line counts as a dynamic redirect because it uses placeholders, and Pages caps those at 100. Splat rules count as dynamic too. If your site has many dated patterns, check which category each falls into before you rely on them. Replace shop.example.com with your own store address.
Squarespace output that needs fixing on Cloudflare Pages
| In the Squarespace output | What to do on any static host |
|---|---|
| Images from squarespace-cdn.com and static1.squarespace.com | Open a page offline and watch the network tab. Any request to those hosts means a path was missed. |
| Features that fetch data from the live site | Load-more buttons, search and some blog listings ask the Squarespace server for data. Test each one on the static copy. |
| Form, newsletter and commerce blocks | These post to Squarespace. Replace the form targets and send shoppers to a hosted checkout. |
| Blog category and tag views | They are generated on request. Only URLs that appear in the sitemap or in page links are saved. |
Squarespace form, newsletter and commerce blocks post to Squarespace and stop working here. Replace forms with a hosted endpoint or a Pages Function, and send shoppers to a checkout you run. Features such as load-more and search may still call the live site, so test each one with the network tab open. Category and tag views are generated on request, so only the URLs the crawler found are saved.
Forms and dynamic features
Static files cannot receive a POST. Either use a form service, or add a Pages Function under a functions folder that handles the request. Redirects and the _headers file do not apply to responses a Function generates.
A Pages Function can email you the submission or write it to a database. Keep the function small, validate the input and return a plain success page.
What can go wrong
- Treating the 100 dynamic redirect cap as a 2,000 cap leads to rules that never load.
- A site with no 404.html sends unknown paths to index.html, and that hides real broken links.
- Cancelling Squarespace before DNS finishes moving takes the site offline for some visitors.
Frequently asked questions
Can Cloudflare Pages host a Squarespace site?
It can host a static copy. WebExport saves the public pages, styles, gallery scripts and images, and Pages serves them from the folder you upload.
How do I handle thousands of Squarespace redirects?
Pages _redirects supports 2,000 static and 100 dynamic rules. Past that, Cloudflare recommends Bulk Redirects. Prefer one pattern rule over many single lines.
Will my gallery pages be fast on Pages?
The files come from Cloudflare’s network, but image weight still matters. The Static Site Image Optimizer converts images to WebP.
Do I need Cloudflare as my DNS provider?
For a custom domain on Pages you add it to the project and follow the DNS steps Cloudflare shows. Check their docs for the rules about where the DNS zone lives.
Official documentation
Free tools for this job
- Squarespace Exit PlannerStep-by-step guide and checklist generator for leaving Squarespace.
- No-Code Lock-in ScoreAnalyze any platform and get a portability score with data export options.
- Static Hosting PickerAnswer 5 questions and get the best hosting recommendation for your exported site.
- Static Site Hosting Cost CalculatorCompare hosting costs: Webflow vs Vercel vs Netlify vs Cloudflare Pages at scale.
Get the Squarespace files first
Paste your public Squarespace URL into the export form and download a ZIP you can deploy to Cloudflare Pages. 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.