|
Post by account_disabled on Dec 30, 2023 14:21:12 GMT 10
并且不希望 Google 缓存任何这些页面,这一点很重要。 何时使用 303 重定向 303 重定向的用例几乎与 302 相同。但是,如上所述,如果您计划在临时重定向期间更改重定向目标,则 303 方法更适合。 何时不使用 303 重定向 同样,就像 302 重定向一样,303 永远不应该用于永久重定向。 303 重定向如何影响 SEO 事实上,303 重定向对 SEO 绝对没有影响。它不会将页面权限或链接转发到新 URL,并且搜索引擎无法缓存它。 307 重定向 – 暂时移动 307 是另一种临时重定向,其执行方式与上述类似方法不同。如果无法更改目标 URL 的请求方法,网站管理员通常会使用它来代替 302 重定向。 在大多数情况下,这意味着在启动重定向时必 手机号码数据 须将传统的 GET 方法替换为 POST 方法。 何时使用 307 重定向 通常,307 重定向与需要特定 POST 重定向的表单操作结合使用。 何时不使用 307 重定向 就像任何其他临时重定向一样,将流量从一个 URL 永久转发到另一个 URL 时,切勿使用 307。 307 重定向如何影响 SEO 307重定向对SEO没有影响。 308 重定向 – 永久重定向 这是 307 重定向的永久对应项。308重定向强制请求方法与原始请求相同。 何时使用 308 重定向 当公司使用 POST 方法移动具有大量表单的非常复杂的网站时,这种重定向方法尤其有效。 何时不使用 308 重定向 对于所有可缓存性可能导致意外负面行为的情况,308 重定向都是错误的选择。 第 2 部分. 客户端重定向 与服务器端重定向不同,这些选项不在服务器级别执行,而是在浏览器尝试访问特定文件时发生。 一般来说,当网站管理员无法设置或控制服务器行为时,客户端重定向就会起作用。一个很好的例子是无法访问服务器上的 .htaccess 文件来指定重定向。 这种类型的 SEO 重定向有一些缺点。也就是说,并非所有浏览器都支持这些重定向,并且可能无法正确重定向用户。此外,搜索引擎可能不会将原始内容的页面权限传递给重定向页面。 最后,客户端重定向会破坏后退按钮,通常会将访问者循环到他们被重定向到的 URL。
|
|