4 min readBy The VibeDeploy team

How to move a site off GitHub Pages and keep your domain

Move a static site off GitHub Pages. Fix repository-prefixed links, test the build on a second URL and switch a client-owned domain after it works.

Short answer

Publish a copy of the built site on the new host while GitHub Pages is still serving the original. If your old address includes the repository name, check the site's asset paths before moving it to a domain root. Test the new copy, connect the domain you own and verify HTTPS before retiring Pages. A github.io address stays with GitHub.

Test the site before you switch the domain

Upload your static build and open it on a VibeDeploy address. You can connect one domain you own during the 14-day trial.

Suppose your client's portfolio lives at studio.github.io/lookbook/. They want visitors to type work.example.com, and they want to review the new copy before anyone else gets that address. You can keep the old site available while you build and test the new one.

If the address is the only change you need, GitHub Pages already supports custom domains. You can connect the client's domain there and keep publishing from the repository. A move makes sense when the delivery process or the purpose has changed. For example, you may want to hand over a finished folder that the client can publish without Git. GitHub also places limits on using Pages to run an online business, e-commerce or commercial SaaS. GitHub custom domains · GitHub Pages usage limits · Hosting comparison

Find the files visitors actually receive

In the repository, open Settings > Pages and check the publishing source. A site made of plain HTML, CSS and images may be published directly from a branch or its docs/ folder. Take the files from that location. For a site built by a workflow, read its build step and reproduce the output. For Jekyll, jekyll build normally produces a _site/ folder. The deployable folder should contain a finished index.html and the assets its pages reference. GitHub's publishing sources · Jekyll build command

Check the repository prefix. An image at /lookbook/images/cover.jpg worked when the site lived under /lookbook/. On the new domain, the same file may live at /images/cover.jpg. If this is a Vite project moving to the root, set its base to '/' or remove a previous '/lookbook/' override and rebuild. Also check hand-written navigation links, which a build setting might leave untouched. If the old site was already at the root of a custom domain, its paths may already be right. Vite's guide to deployment paths

Test the site before you switch the domain

Upload your static build and open it on a VibeDeploy address. You can connect one domain you own during the 14-day trial.

Test the new copy before changing DNS

  1. Open VibeDeploy's upload flow and choose a new site name. Drop the build folder or a ZIP with index.html at the top level. Publish and open the HTTPS address VibeDeploy returns. Upload a static site
  2. In a private browser window, open the home page, follow an interior link and refresh that page. Check a photograph, the stylesheet and any downloadable file. Share this test address with the client for approval.
  3. Save a short list of old URLs that people actually use, such as a bookmarked portfolio piece or a brochure linked from email. Check the matching path on the new address. A home page can look right even while the brochure link still goes to the old host.

Move the domain and keep the source

If the client owns the domain, open Domains in VibeDeploy, add the domain and link it to the existing site you just tested. Copy the routing and ownership records shown for that exact hostname. At the client's DNS provider, note the previous web records before changing them, then apply the displayed records. Leave mail and unrelated verification records in place. Use the dashboard's DNS verification and wait for HTTPS to work on the client's address.

Open the client's domain and repeat the saved-link checks. If the client also shares a www address or the bare domain, check that address separately. Keep the old deployment available while DNS changes reach visitors. Once the new site serves the correct pages, you can unpublish Pages from the repository settings and keep the repo for future edits. For a branch-published site, go to Settings > Pages > Branch, select None and save so a later push cannot republish it. If an Actions workflow still deploys to Pages, turn off that publishing step as part of retiring it. GitHub's branch setting · GitHub's guide to unpublishing a site

If the client only had a github.io address, give out the new domain and update the links the client controls. If old bookmarks still bring people to Pages, keep a move notice and link there for as long as those visitors need them. Unpublishing Pages also takes that notice offline.

VibeDeploy's 14-day trial requires no card and includes one site with one custom domain. Solo is EUR 4/month to keep that site online after the trial. Domain registration stays separate. A trial site pauses when the trial ends without a paid plan, so settle who will own the subscription before switching the client's public address. VibeDeploy pricing

From the VibeDeploy team

Ship your AI-built site in minutes

VibeDeploy hosts your AI-built websites in the EU with custom domains, automatic SSL, and a 14-day free trial that gets you online today.

Deploy guides for this topic

Questions people ask

Can I keep my github.io address on another host?

GitHub controls github.io, so you cannot point that address at the new host's servers. Share the new URL and update the links you control. If visitors already use a domain you own, keep the same name and change where its DNS points.

Do I have to delete the GitHub repository?

No. You can keep using the repository for source control. GitHub's Unpublish site action removes the current Pages deployment and leaves repository settings and content intact.

Why does the new home page have no styling?

Check a missing stylesheet or image URL. If it still starts with the old repository path, adjust the site's base URL for its new location, rebuild and upload the new output. Check internal links for the old prefix too.

Related reading