gpt4 book ai didi

wordpress - BODY 字段在重定向 URL 中是否重要?

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:43:34 24 4
gpt4 key购买 nike

我正在运行一个 wordpress 网站,我正在尝试一些重定向。我注意到当我从 .HTACCESS 重定向一个特定的 URL 时,标题响应有一个像这样的主体:

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://example.com/aaa/bbb/">here</a>.</p>
<hr>
<address>Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 Server at example.com Port 80</address>
</body></html>

但是当我使用 wp_redirect() 重定向 URL 时,并没有出现同样的情况。

从 SEO 的角度来看,这会影响什么吗?

提前致谢。

最佳答案

根据 RFC2616 for HTTP1.1, section 10.3.2 “301 永久移动”:

Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).

如果它是一个 GET 请求,我认为它有正文内容。

至于 Google 和其他人如何解释 301,这可能有助于回答:https://stackoverflow.com/a/19645542/695787 .网上对此有很多讨论,但据我所知,谷歌还没有发布规范。

关于wordpress - BODY 字段在重定向 URL 中是否重要?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37132319/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com