In this article we will learn to redirect HTTP traffic from old server to new server. If you want redirect all traffic from the old server's HTTP port to new server with a different IP.
First of all we can assume you have a server with interface name as "host1", and destination IP on which you want to redirect it is "18.104.22.168".
Old server interface name : host1
Destination IP : 22.214.171.124
Service : Apache(port 80 and 443)
Now, you can do redirection by running the below given commands :