This Netlify project redirects all traffic from oceanparcels.org to parcels-code.org, and traffic from virtualship.oceanparcels.org to virtualship.parcels-code.org - preserving the URL paths.
This was motivated by the fact DNS only maps domain names to IP addresses - it doesn't understand URL paths, hence it cannot redirect oceanparcels.org/blog/post1 to parcels-code.org/blog/post1.
The netlify.toml configuration file sets up a 301 (permanent) redirect that:
- Captures any URL path on
oceanparcels.org - Redirects to
parcels-code.orgwith the same path - Examples:
oceanparcels.org/blog/post1→parcels-code.org/blog/post1oceanparcels.org/docs/intro→parcels-code.org/docs/intro