Skip to main content
Live. This area is documented as current, user-reliable behavior.

Goal

Attach the right domain without leaving WordPress and StackShift out of sync.

Prerequisites

  • A deployed or planned WordPress stack

Workflow

1
Decide on the public domain as early as possible.
2
Attach or configure the domain in StackShift.
3
Verify the public site and /wp-admin on the final hostname.

Why WordPress is different from a plain app

WordPress stores its own site URL and home URL in the database and bakes them into links, redirects, and asset paths. So a custom domain is not only a routing change at the edge — the WordPress site URL has to match the hostname it is actually served on.

Attaching the domain

  • Decide the public domain as early as possible — ideally before first boot.
  • Attach the domain to the WordPress project in StackShift so routing and TLS are issued for it. The site switches only after the domain is proven to belong to the project: a CNAME to the project address, or the TXT record StackShift shows you. Otherwise the attach stops and tells you which record to add.
  • The project Domains page uses the same switch. Verifying the first domain of a site still on its temporary address moves the site onto it, making a domain primary moves the site to that domain, and removing the primary domain moves the site back to its StackShift address.
  • Verify both the public site and /wp-admin on the final hostname.

Keeping URLs in sync

If the site was first deployed on a generated hostname, resync the WordPress URLs after attaching the domain — a redeploy or the update site URL action rewrites the stored URLs. Skipping this is the usual cause of redirect loops, mixed-content warnings, or an admin that bounces back to the old hostname.

Expected result

Routing and WordPress site URLs line up with fewer surprises after launch.

Common failures

  • The WordPress site URL still points at the generated hostname, causing redirect loops or mixed content.
  • The domain is routed at the edge but WordPress was never resynced to it.

Deploy WordPress on StackShift

Launch single-site WordPress on the native Apache + PHP runtime with an auto-provisioned managed MySQL database and persistent storage.

WordPress Control Surface

A first-class operational surface for direct WordPress projects: overview, narrow safe actions, diagnostics, and recent history.