Skip to content

Our staff receive an information from one of our customers about their site is being redirect to other unknown website when access any link from google search, after check their site, we found out that site is injected with some harmful php code.
Firstly, please check your index.php at magento root and find for this:


Or may be difference. All you have to do is remove it, usually start from line 2, remove that long line.
To be sure, please set permission for index.php to 644, then check your .htaccess for any strange line, delete all if it present in your .htaccess

Hope this help for anyone who meet this situation.