Wordpress blog redirect to another URL from google

2019-06-14 17:01发布

My website is www.padmavatiwealth.com. When I reach directly to this website then It is working fine but when I go through google search engine It redirects me to another strange website. I used wordpress to develop this website. I don't understand what is happening here.

Please help me. Below is google URL which redirects me to another URL, instead of padmavatiwealth.com.

http://www.google.co.in/url?sa=t&rct=j&q=padmavatiwealth.com&source=web&cd=1&cad=rja&ved=0CB0QFjAA&url=http%3A%2F%2Fwww.padmavatiwealth.com%2F&ei=Wl2bUI3YH4yqrAfyjIHwDw&usg=AFQjCNE8ifN9KNmcMjPYwAAoZe0NjsvfgQ

Thanks in advance.

2条回答
戒情不戒烟
2楼-- · 2019-06-14 17:40

Most logical explanation: You have installed a malicious plugin (or still have it installed) that detects the google bot and redirects accordingly to get more visits to their site.

Best way to proceed. Set up a new wordpress environent. Copy the wp-config.php from the old one to the new one. Copy template/plugins one by one and keep checking.

You can also use one of the many browser addons that let you fake your user agent, that way your browser will be able to look like the google bot, so you can see if the redirect returns or not.

查看更多
你好瞎i
3楼-- · 2019-06-14 17:51

Had similar issue myself today.

The problem was a malicious plugin. Even after removing the plugin the issue remained.

The .htaccess file was being over written to include a redirect.

I removed the redirect and re uploaded it

Your .htaccess should simply look something like this

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Make sure your .htaccess file only has read permissions 0444

查看更多
登录 后发表回答