Sharepoint:处理 *.asp 请求

发布于 2024-10-09 10:17:26 字数 244 浏览 0 评论 0原文

我们已将旧的 ASP 网站移植到 SharePoint,并竭尽全力保持网站结构不变,唯一的更改是将扩展名从 .asp 更改为 .aspx。我们将所有 .asp 请求 301 重定向到等效的 .aspx 页面。

问题是 Google 不尊重 301 重定向的页面排名。这导致了一个大问题。因此想知道是否有一种方法可以接受 .asp 页面的请求并发布 SharePoint .aspx 页面,但保持 URL 不变,即没有 301 重定向。

谢谢。

we've ported an old ASP site to SharePoint and gone to great lengths to keep the site structure as is with the only change being the change in extension from .asp to .aspx. All .asp requests we 301 redirect to equivalent .aspx page.

Problem is Google does not honour page rank for 301 redirects. This has cause a major problem. So wondering if there is a way to take the request for the .asp page and publish the SharePoint .aspx page but keep the url as is, i.e., no 301 redirect.

Thanks.

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

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

发布评论

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

评论(1

背叛残局 2024-10-16 10:17:26

301重定向意味着“永久移动”,对于搜索引擎而言,这是移动页面的正确方式。如果您进行 URL 重写,这会将 .aspx 页面返回给用户代理,但返回的是原始 .asp URL,搜索引擎将不会更明智,并将继续将您的旧 URL 保留在其索引中。

如果您决定使用此方法,则可以使用 ASP.NET 管道中的 HTTP 模块来实现重写 - 有一个

缺点是你必须永远维护它。我建议继续使用 301 重定向,并在 Google 重新调整其索引时保持耐心。不要忘记 Google 网站管理员工具可以帮助您完成这种转变。

The 301 redirect means "moved permanently" and is the correct way to move pages as far as search engines are concerned. If you do a URL rewrite, which would return the .aspx page to the user agent but at the original .asp URL, the search engine will be no wiser and will continue to keep your old URL in its index.

If you decide to use this approach, you can implement the rewrite using an HTTP module in the ASP.NET pipeline - there is a URL Rewrite plug-in for IIS which will do this and is easy to configure.

The drawback is that you have to maintain this forever. I would recommend continuing to use a 301 redirect and be patient while Google re-jigs its index. Don't forget the Google web-master tools that can help you with this kind of transition.

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