简体   繁体   English

查找 301 重定向的来源

[英]Finding the source of a 301 redirect

I have a WordPress website at https://newable.xyz which is fine, if I go to https://newable.xyz/wp-admin I get redirected to https://newable.co.uk/money/financewp-admin . I have a WordPress website at https://newable.xyz which is fine, if I go to https://newable.xyz/wp-admin I get redirected to https://newable.co.uk/money/financewp-管理员

This is definitely a 301 redirect.这绝对是 301 重定向。

I've tried the following things:我尝试了以下事情:

  • Deleting the redirecting plugin and all of its data删除重定向插件及其所有数据
  • Clearing my browser cache清除我的浏览器缓存
  • Using multiple different browsers使用多个不同的浏览器
  • Using InPrivate/ Incognito使用 InPrivate/隐身
  • Using a fresh .htaccess file使用新的 .htaccess 文件

Am I missing something obvious?我错过了一些明显的东西吗?

try search in your active WP theme - wp_redirect or wp_safe_redirect尝试在您的活动 WP 主题中搜索 - wp_redirectwp_safe_redirect

_search in the theme to see if there is a wp_redirect or wp_safe_redirect as Vasyl said _search 在主题中看看是否有如 Vasyl 所说的 wp_redirect 或 wp_safe_redirect
_deactivate all plugins, both default and mu (aka mu-plugins) and analyse which one is causing you problems (if there is one that creates conflicts or creates the redirect). _deactivate 所有插件,包括默认插件和 mu(又名 mu-plugins),并分析哪一个会导致您出现问题(如果有一个会产生冲突或创建重定向)。
_Try looking in the htaccess file (mod rewrite) of the root, every folder can have its own htaccess . _尝试查看根目录的 htaccess 文件(mod rewrite),每个文件夹都可以有自己的 htaccess You can have more than one .htaccess file on your hosting account, but each directory or folder can only have one, pay attention.您的主机账户可以有多个.htaccess文件,但每个目录或文件夹只能有一个,注意。
_Try to see if there is a server configuration (many hosting services have the ability to put a redirect to another domain) _尝试查看是否有服务器配置(许多托管服务具有重定向到另一个域的能力)
-Delete the wordpress package in case it has been polluted with some injected code and download and reupload it. -删除wordpress package,以防它被一些注入的代码污染,然后下载并重新上传。

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

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