Domain Migration
This workflow supports legacy-domain migration while preserving visibility into inbound traffic patterns before final redirect policy is locked.
Primary Policy
- 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.
Configuration Source
- Migration config file:
_data/domain_migration.yml - Key fields:
primary_domainlegacy_domains[].domainlegacy_domains[].status(observe_onlyorredirect_enforced)legacy_domains[].preserve_path_query
Cloudflare Rule Shape
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.
Log Capture
Export logs with at least:
ClientRequestHostClientRequestPathClientRequestQueryEdgeResponseStatusClientCountryUserAgent
Then summarize with:
ruby ./bin/report_legacy_domain_logs.rb path/to/cloudflare-export.csv
Output Use
- Identify high-volume legacy routes.
- Identify paths that should get dedicated redirects.
- Monitor migration progress by host/path/request volume over time.