| layout | minimal |
|---|---|
| title | Domain Migration |
| description | Legacy domain migration and redirect-log workflow. |
| breadcrumb | Domain Migration |
| breadcrumb_parent_name | Docs |
| breadcrumb_parent_url | /backlog/docs/ |
| id | doc-010 |
{% include breadcrumbs.html %}
This workflow supports legacy-domain migration while preserving visibility into inbound traffic patterns before final redirect policy is locked.
- Canonical production domain:
https://www.just3ws.com - Legacy domains should be fronted by Cloudflare and redirected with
301to the canonical domain. - Redirects must preserve path and query string.
- Migration config file:
_data/domain_migration.yml - Key fields:
primary_domainlegacy_domains[].domainlegacy_domains[].status(observe_onlyorredirect_enforced)legacy_domains[].preserve_path_query
For each legacy domain:
- Enable proxying through Cloudflare.
- Create a redirect rule matching host.
- Target URL expression:
https://www.just3ws.com${uri}
- Status code:
301. - Preserve query string.
Export logs with at least:
ClientRequestHostClientRequestPathClientRequestQueryEdgeResponseStatusClientCountryUserAgent
Then summarize with:
ruby ./bin/report_legacy_domain_logs.rb path/to/cloudflare-export.csv- Identify high-volume legacy routes.
- Identify paths that should get dedicated redirects.
- Monitor migration progress by host/path/request volume over time.