Admin script to forward all pages
Say I am moving to a new server, configured the nameservers, and so on. What sort of script can I use to get all the current accounts on a server to forward to the new server?For example, I have an account on the ip 1.1.1.1. I want all sites on that server to forward to the new server with the address http://1.1.1.2/~username/ where username is the username of that account.
I have cPanel installed. Can I do this automatically with little to no additional programming? Or do I need to code this myself?