我目前正在调试一个荷兰WP网站https://glaszetterdirect.nl,问题是我得到了一个不想要的重定向:http://www.glaszetterdirect.nl到https://glaszetterdirect.nl/wp-admin
我真的不明白怎么回事。我已查过以下各点:
.htaccesswp-config.phpwp_options db表(siteurl和home均为:https://glaszetterdirect.nl)wp_old_slug_redirect奇怪的是,其他的一切都是按其应有的方式重新定向的。
发布于 2018-10-05 09:14:26
如果您调用$ curl -I https://glaszetterdirect.nl,您可以看到响应字符集是UTF-8,它指示重定向是由Wordpress完成的,而不是see服务器。
$ curl -I http://www.glaszetterdirect.nl
HTTP/1.1 301 Moved Permanently
Date: Fri, 05 Oct 2018 08:24:41 GMT
Expires: Fri, 05 Oct 2018 09:24:42 GMT
Cache-Control: max-age=3600
Location: https://glaszetterdirect.nl/wp-admin/
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Backend: web02_vmm22
Server: PCX/Cache
Age: 2483
X-Cache-Hit: Yes
X-Cache-Hits: 3
X-Server: cache01
Connection: keep-alive在尝试访问时,http://www.glaszetterdirect.nl/wp-admin会将您重定向到带有iso-8859-1字符集的拖尾斜杠页面。
$ curl -I http://www.glaszetterdirect.nl/wp-admin
HTTP/1.1 301 Moved Permanently
Date: Fri, 05 Oct 2018 09:10:14 GMT
Location: http://www.glaszetterdirect.nl/wp-admin/
Content-Type: text/html; charset=iso-8859-1
X-Backend: web02_vmm22
Server: PCX/No-Cache
Age: 0
X-Cache-Hit: No
X-Cache-Hits: 0
Connection: keep-alive您应该按照@Sally的建议查看已安装的插件和自定义代码。
https://wordpress.stackexchange.com/questions/315968
复制相似问题