简体   繁体   English

WordPress网站不断重定向到其他域

[英]Wordpress Website Keeps Redirecting to Different Domain

I have a wordpress website but it keeps redirecting to a different domain: 我有一个wordpress网站,但它一直重定向到另一个域:

Link is here : 链接在这里

I have tried the following: 我尝试了以下方法:

  1. Contacted the hosting and they say it is not hacked or compromised 联系了托管商,他们说托管没有被黑客入侵或遭到破坏
  2. Tried on different computers and browser. 在不同的计算机和浏览器上尝试过。 On one computer it works fine. 在一台计算机上工作正常。 5 other computers and browsers it redirects 重定向的其他5台计算机和浏览器
  3. I have done the scan by wordfence and sucuri and nothing malicious shows up 我已经通过wordfence和sucuri进行了扫描,没有发现恶意
  4. I tried to inspect the element but the redirect is so fast its hard to inspect 我尝试检查该元素,但是重定向是如此之快以至于很难检查
  5. .htaccess has the following: .htaccess具有以下内容:

The following is the content of the .htaccess file: 以下是.htaccess文件的内容:

# 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

<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>

Please help 请帮忙

I know this answer is very late but I'll share my experience to help any one who has this problem. 我知道这个答案很晚,但是我会分享经验来帮助任何有此问题的人。 cause of this issue can be a plugin that you downloaded from outside of wordpress.org or some body has access to your wordpress admin account and you doesn't already close editor.php in appearance tab or hacker has your ftp user and password or ... to solve this create a full backup first and save it in your computer in case of doing any mistake and then: 造成此问题的原因可能是您从wordpress.org外部下载的插件,或者某个机构可以访问您的wordpress管理员帐户,并且尚未关闭外观标签中的editor.php或黑客拥有ftp用户和密码或。 ..要解决此问题,请先创建完整备份,然后将其保存在计算机中,以防万一,然后再执行以下操作:

  1. go to theme directory of your wordpress site and delete all of the unused theme because they are infected already. 转到您的wordpress网站的主题目录,并删除所有未使用的主题,因为它们已被感染。
  2. in active theme edit your functions.php file and delete all extra code inserted by malware. 在活动主题中,编辑您的functions.php文件,并删除恶意软件插入的所有其他代码。 you can search for "wp_vcd" or "wp-tmp" words to find the code. 您可以搜索“ wp_vcd”或“ wp-tmp”字样以找到代码。
  3. download latest wordpress installation. 下载最新的wordpress安装。 then delete wp-include and wp-admin folder and all files in public_html except wp-content folder and .htaccess file and wp-config.php file. 然后删除wp-include和wp-admin文件夹以及public_html中除wp-content文件夹和.htaccess文件和wp-config.php文件之外的所有文件。 after that replace deleted files and folder with downloaded wordpress. 之后,将已删除的文件和文件夹替换为下载的wordpress。
  4. remove all plugins that you downloaded from known source. 删除您从已知来源下载的所有插件。
  5. finally change all of your passwords like ftp, admin panel, cpanel or direct admin and ... in case if hacker saved your info somewhere. 最后更改所有密码,例如ftp,管理面板,cpanel或直接admin,以防万一黑客将您的信息保存在某处。 hope this little guide can help someone. 希望这个小指南能对某人有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM