我应该使用什么HTTP重定向方法? [英] What HTTP redirection method should I use?

查看:143
本文介绍了我应该使用什么HTTP重定向方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个域名博客。我很快就会购买另一个域名。

我担心的是,当我更改我的博客域名时,所有链接都可能会被其他网站破坏。我希望链接永远存在,并且还希望它的页面排名不会下降。

I have a blog with a domain. And I'm buying another domain soon.
What I concerned is, when I change my blog domain, all links could be broken from other sites. I want the links alive forever, and also want it's page-rank not to go down.

为了保持我的页面排名,我应该使用什么重定向?(HTTP 301) ?302?303?)

我不明白他们的区别是什么。

For keeping my page-rank, what redirection should I use?(HTTP 301? 302? 303?)
I don't understand what their difference is.

旧网域仍然是我的。

推荐答案

我说HTTP 301(永久移动)重定向是你最好的选择。

它表示永久重定向,在您的情况下似乎是准确的。它还可以防止您对重复内容施加任何处罚。

It indicates a permanent redirect, which appears to be accurate in your case. It also prevents you from being imposed any penalties for duplicate content.

每次向您的旧URL发出请求时,301重定向都会告诉搜索引擎该页面有移动到新位置并为其提供新的正确URL。您可以将其视为在移动到新地址时更改邮件地址请求。

Any time a request is made to your old URL, the 301 redirect tells the search engine that the page has moved to a new location and provides it with the new, correct URL. Think of it like putting in a change of address request for your mail when you've moved to a new address.



编辑:当您将网站移至新地址时,Google明确建议您使用301重定向。来自他们在网站站长上名为移动您的网站的网页中央(重点补充):


Google explicitly recommends using a 301 redirect when you've moved your website to a new address. From their page entitled "Moving your site" on Webmaster Central (emphasis added):


使用301重定向永久
将旧网站上的所有网页重定向到
您的新网站。
这告诉搜索
引擎和用户您的网站永久移动了
。我们建议您首先移动
并重定向一个部分或
目录,然后在移动所有
内容之前测试以确保您的重定向正确地工作



不要单独重定向
将所有流量从旧的
网站引导到新的主页。这将
避免404错误,但这不是一个好的
用户体验。这是更多的工作,但
页面到页面重定向将帮助
保留您的网站在Google
中的排名,同时为您的用户提供一致且
的透明体验。

如果您旧网站上的
页面与新的
网站(推荐)之间不存在1:1的匹配,请尝试确保每个页面上的
您的旧网站最低
重定向到新页面,其中
类似内容。

Use a 301 Redirect to permanently redirect all pages on your old site to your new site. This tells search engines and users that your site has permanently moved. We recommend that you move and redirect a section or directory first, and then test to make sure that your redirects are working correctly before moving all your content.

Don't do a single redirect directing all traffic from your old site to your new home page. This will avoid 404 errors, but it's not a good user experience. It's more work, but a page-to-page redirect will help preserve your site's ranking in Google while providing a consistent and transparent experience for your users. If there won't be a 1:1 match between pages on your old site and your new site (recommended), try to make sure that every page on your old site is at least redirected to a new page with similar content.

第二个片段粗体文字向我表明,如果您使用301重定向,则很可能您可以在Google的搜索结果中保留您网站的大部分排名。我认为排名的临时波动是可能的,甚至可能,但只要一切都被正确地重定向,似乎有证据表明至少并非所有希望都失去了。 PageRank中的一些波动或丢失与从头开始全部的不一样,正如其中一条评论所示。

The second snippet of bolded text indicates to me that it's very likely you can maintain most of your site's ranking in Google's search results if you use a 301 redirect. I assume that temporary fluctuations in your rankings are possible, even likely, but as long as everything is redirected properly, there appears to be evidence that at least not all hope is lost. Some fluctuation or loss in PageRank is not the same thing as starting all over from scratch, as one of the comments indicates.

Google也建议在您的网站移动时让他们知道值得一试 - 看起来我的地址变更比我想象的还要精确!

Google also advises letting them know when your site has moved, which may be worth doing—it looks like my "change of address" simile is even more precise than I thought!

这篇关于我应该使用什么HTTP重定向方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆