Simple stuff. So, let’s breakdown how to easily set this up on Netlify for free.
_redirectsfile (no extension) to your website content/build (changing to your own domains, of course)
https://olddomain.com/* https://newdomain.com/:splat 301!
That’s it! Now Netlify will dynamically forward all your pre-existing URLs from your old domain to the new one. No pesky
.htaccess files or running your own basic web server(s)!
Hopefully this helps others trying to dynamically redirect their domains without the headache.
I normally set this up through Github / git hosting ↩
As always, I'd love to read your feedback in my public inbox!