How redirects work in Ghost
redirects.yaml sends old URLs to new ones, so links and search rankings survive a renamed post, a migration or new permalinks. How it works, with plain and regex examples you can copy.
RoutingSEOCelebrating our new site: 30% off everything with code , until Dec 1.
Routes, collections, redirects and URLs: how Ghost decides what lives at each address.
redirects.yaml sends old URLs to new ones, so links and search rankings survive a renamed post, a migration or new permalinks. How it works, with plain and regex examples you can copy.
RoutingSEOTurn a page you write in the Ghost editor into your homepage, with one change to routes.yaml and no theme code, and move your posts to /blog/.
TemplatesRoutingCustom routes and collections have no settings of their own in Ghost Admin. The data property borrows them from a page or a tag, so you can set their meta title, description and social cards.
SEORoutingMove your self-hosted Ghost site to a new domain with Ghost-CLI, with HTTPS, and redirect the old domain to the new one.
HostingRoutingServe a static JSON, XML or plain-text file at its own URL on your Ghost site, with one route in routes.yaml and one template in your theme.
RoutingGive the post an internal tag such as #hide, then filter that tag out of the home collection in routes.yaml. The post stays published and reachable at its URL.
RoutingEditorroutes.yaml decides your Ghost site's URLs: which template a URL uses and how posts are grouped. How routes, collections, taxonomies and channels work, with examples you can copy.
RoutingFrom a solo newsletter to a busy newsroom, there is a theme that fits. No code needed.