I want to go through a file and swap anything that says http://nameofsite.com to ftp://nameofsite.com

sed s/http://nameofsite.com/ftp://nameofsite.com/ test.file

won't work because the text contains /

any help please?