In this tutorial, we will introduce you how to redirect all an old wordpress links to a new site domain using .htaccess file. It is very useful to park a domain.
Preliminary
In order to use .htaccess file, you should make sure that you are using apache server. If not, this method will not work.
Use .htaccess to redirect links
We can use code below to redirect all link in an old site in a .htaccess file .
rewriteengine On rewritebase / rewritecond %{HTTP_HOST} ^jupyterly.com$ [OR] rewritecond %{HTTP_HOST} ^www.jupyterly.com$ rewriterule ^(.*)$ https://www.tutorialexample.com/$ [R=301,L]
Run this code, we will redirect all links in jupyterly.com or www.jupyterly.com to https://www.tutorialexample.com/.