my wordpress site when viewing a profile of authors sometimes it stays sometimes when refreshed it goes to http://financetimes.co/work-at-home-mom-true-success-story-googletrader/
redirects to this hacked site.
is there a php code i can add in Function.php so it dont redirect.
if "http://financetimes.co" {
dont redirect
}
You first need to establish if the problem is on your computer side or on the server side.
Try with another computer. If the problem remains, the problem is on the server.
You cannot simply add a “patch”. If your website is vulnerable you need to fix it.
You can consider disabling plugin by plugin and/or try temporarily another theme in order to find out the origin of the problem.
Maybe your wordpress theme is corrupt or contains malware. Download the following plugin to check if your theme contains malicious code;
https://wordpress.org/plugins/tac/
Goodluck!
resolved the problem by removing infected zen cauche pro plugin thanks stack overflow members.