That shall be not a big problem.
1) Install the new harddrive, partition and format it.
2) mount it to e.g. /mnt/www and copy the contents from your www directory to it. You must copy it with preserved permissions!
3) Change your fstab so that your new harddrive is munted as your www directory.
Dont delete the files on the old www drive until you tested everythind