处理全新网站的 301 重定向

发布于 2024-10-27 06:33:20 字数 368 浏览 1 评论 0原文

我看过多篇关于当网站重新设计或 Url 刚刚更改为标准格式时重定向 Url 的文章,但我需要知道当 Url 与旧 Url 没有关联时如何管理。

例如,旧网址可能是 www.mysite.com/index.php?product=12,但无法将该网址映射到新网站。

我不希望搜索引擎认为该页面已损坏,因此我认为最好的办法是 301 重定向到主页,但我不确定如何有效地做到这一点。我是否可以将 404 错误页面更改为 301 到主页? 另外,这会导致通过不同的 URL 出现重复内容的问题吗?

是否最好不要担心这些,让搜索引擎重新索引新的 URL?

我正在运行带有重写模块和 ASP.NET 2 的 IIS7。

谢谢。

I have seen multiple articles on redirecting Urls when the site has been redesigned or Url just changed to a standard format but I need to know how to manage when the Url has no correlation to the old one.

For instance, an old Url may have been www.mysite.com/index.php?product=12 but there is no way to map that Url to the new site.

I don't want search engines to think that the page has broken so I assume the best thing to do is to 301 redirect to the home page but I am not sure how I would do that effectively. Would I just change the 404 error page to do a 301 to the home page?
Also, would that then cause issues with duplicate content via dofferent Urls?

Is it better to just not worry about these and let the search engines re-index the new Urls?

I am running IIS7 with Rewrite module and ASP.NET 2.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冬天旳寂寞 2024-11-03 06:33:20

为什么说无法将该 URL 映射到新 URL?可能有,因为两者都应该是给定资源的唯一标识符。如果您的网站排名不错,那么解决这个问题并通过 301 重定向到正确的页面可能是值得的。这样一来,排名应该是不变的。

将所有内容重定向到新主页可能会产生负面影响。这实际上取决于机器人将如何解释这一点。但这似乎是一种人为的提高主页排名的方法,并相应地受到惩罚。

什么也不做,等待机器人索引您的新网站当然可以,但通常您不能失去已经获得的高排名。

总而言之,我建议您在这里提出一个关于如何将旧 URL 映射到新 URL 的新问题,并进行正确的重定向。

Why do you say there is no way to map that URL to the new one? There probably is, since both should be unique identifiers for a given resource. If your site has good rankings, it may be worth the pain to work this out and have a 301 redirect to the right page. In this way, the ranks should be unchanged.

Redirecting everything to the new home page will probably have a negative effect. It really depends on how the bots are going to interpret this. But it may seem an artificial way to increase the rank of the home page, and correspondingly get a penalty.

Doing nothing and waiting for the bots to index your new site will of course work, but often you cannot afford to lose the high rank you have gained.

All in all, I would advise you to ask here a new question on how to map the old URLs to the new ones, and do proper redirects.

夜空下最亮的亮点 2024-11-03 06:33:20

您提供的产品 URL 显然是一个产品。最好的选择是将其 301 重定向到与旧页面最相关的新页面。如果根本没有任何外部链接指向它,那就让它消失吧。请务必将其从您内部可能拥有的任何站点地图或旧导航链接中删除,否则它将不断被重新索引,这是您想要避免的。

设置好新的站点结构后,请访问 AuditMyPc.com 等站点并为新站点设置创建全新的站点地图。然后登录 Google 网站管理员工具并重新提交新的站点地图。这通常可以解决问题,但如果该页面已编入索引,则预计它会在 Google 索引中保留一段时间。他们不太会把自己清理干净。

That product URL you supplied is obviously, well, a product. The best bet is to 301 redirect it to a new page that is the most relevant to that old page. If there aren't any external links even pointing to it at all, just let it die. Be sure to remove it from any sitemaps or old navigation links you may have internally though or it will keep getting re-indexed which is what you want to avoid.

Once you have your new site structure set up, visit a site like AuditMyPc.com and create a brand new sitemap of your new site setup. Then login to Google Webmaster Tools and resubmit the new sitemap. This normally will fix the problem, but if that page is indexed, expect it to stay in Google's index for a while. They don't clean themselves up too well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文