StaticExit › Blog

Squarespace to GitHub Pages: Step by Step

Updated October 2026

Free hosting for static sites from GitHub. Good for sites that rarely change; custom domains and HTTPS are included. This guide assumes you already have a static export of your Squarespace site: a folder with index.html, your pages as folders, and an assets folder. If you do not have that yet, start with how to export a Squarespace site as HTML.

Steps

  1. Create a free GitHub account and a new repository named after your site, for example my-site.
  2. Upload the contents of the site folder from your export (index.html at the top level, not inside a subfolder). The web interface accepts drag and drop for up to 100 files; for larger sites use GitHub Desktop.
  3. Open Settings → Pages, choose the main branch and the root folder, and save. In about a minute the site is live at username.github.io/my-site.
  4. Add your domain under Settings → Pages → Custom domain. GitHub shows the DNS records to create at your registrar: four A records for the apex and a CNAME for www. Tick Enforce HTTPS once the certificate appears.

What to check afterwards

GitHub Pages serves folders with index.html, so links like /about keep working. Form submissions need the relay or email setting from the export. Open the site on your phone and click through the menu, a gallery and the contact form. Compare against the measurement table from the export if you have one.

Keeping your rankings

Keep the same page paths as on Squarespace (/about, /menu, /contact) and the same titles and descriptions. The export keeps both. If a page's address changes, add a redirect on the new host.

No export yet? The free check shows your page count and what carries over; the export is once. Prefer not to touch hosting at all? We host it with your domain for a month.

StaticExit is not affiliated with Squarespace, Inc., GitHub Pages or its parent company.