I also replied about this here but using the _redirects
file format below:
https://blog.example.com/* https://example.com/blog/:splat 200
In netlify.toml
format this would be:
[[redirects]]
from = “https://blog.example.com/*”
to = “https://example.com/blog/:splat”
status = 200
There was a force = true
in your example and not in mine. Including this may be better depending on the use case so please do include it if you prefer:
[[redirects]]
from = “https://blog.example.com/*”
to = “https://example.com/blog/:splat”
status = 200
force = true
This would match the _redirect
rule with a 200!
like so:
https://blog.example.com/* https://example.com/blog/:splat 200!
Please let us know if this doesn’t work as expected or if there are other questions.