I have a website with roughly 1K URLs. The website is moving to a different domain name. The URLs will be the exact same though, otherwise. I'd like to incorporate an htaccess or some kind of rule that does a 301 redirect for all URLs in one fell swoop. It would essentially replace the domain name as a 301 redirect.
Example:
- Current URL:
domain.example/blog/post-1.html
- Redirect To:
newdomain.example/blog/post-1.html
And that performed as a 301 redirect. How would I do that?