Hi, my WordPress site was hacked, home page working fine but if anyone click on other page or post visitor redirecting to other site. I changed all WordPress files (upgraded to latest version), upgraded plugins, only theme files remain same, changed FTP and cPanel password. after doing all my site work fine 2 days but today I see post and page redirecting again. Please help me.
Have you checked the posts themselves? And it most likely is in the theme files, can you re-upload a fresh copy?
I'd have said not to worry all those other files and to concentrate on the theme. Change to the default and check it works - then go find a backup or install a new theme - and be careful to pick one that is well coded.
Sarah is correct. This should probably tell you where the problem(s) are. http://sitecheck2.sucuri.net/ Nigel
Otherwise I have used WordFence with succes several times - and checked .htaccess-file (If this file has many lines then it's probably infected and you should look after lines to reset)