Thanks Gekkoshot. I found te code and removed it. It was in a plugin I had installed
The redirect code is in the wp-content/cache folder. I had to manuallly delete the cache via FTP. I’m a little worried about w3 Total Caches security. How did the code get added to the cache folder and is it going to happen again?
direct me is the name of the script. I purchased it from codecanyon.