将旧的遗留 Web 应用程序转移到新的应用程序时(特别是关于损坏的链接问题),最佳实践是什么?

发布于 2024-08-08 00:24:00 字数 470 浏览 3 评论 0原文

假设您有一个旧的旧网站,带有内部 php CMS。

http://mysite.com/index.php?page=3&c=7

现在,由于某种原因,您在 Wordpress 中重新构建了您的网站,使用 SEO 友好的 URL,注册了 Google Analytics 帐户,并且需要更新您的系统,因此当

http://mysite.com/

在浏览器上设置时,现在它会指出您新安装的系统。

问题是您的网站很旧并且已经被您的客户所熟知。很多人在您的网页中添加了很多链接书签,因此仅将您的域名重定向到“新网站”就会产生一堆损坏的链接或与 SEO 相关的其他问题。

那么,在这种情况下,您在进行这种转变时应该采取哪些步骤呢? (我只记得在很多复杂的方案中使用了 mod_rewrite )。当您以丢失所有旧链接的方式更改系统时,是否还有其他“最佳实践”?

Suppose you have an old legacy website, with an in-house php CMS.

http://mysite.com/index.php?page=3&c=7

Now, for some reason, you re-structured your website in Wordpress, with SEO friendly URL's, registered a Google Analytics account, and needs to update your system, so when

http://mysite.com/

is set on the browser, now it points out to your new installed system.

The problem is that your website is old and already well know by your clients. A lot of people have bookmarked a lot of links in your webpage, so just redirecting your domain for your "new website" would create a bunch of broken links or other problems relative to SEO.

So, in this scenario, which steps should you take when doing this shift? (I can only remember of using mod_rewrite in a lot of complex schemes). Are there other "best practices" when you change systems in such a way that you lose all your old links?

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

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

发布评论

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

评论(1

迷雾森÷林ヴ 2024-08-15 00:24:00

总的来说,如果可能的话,您希望对旧 URL 进行 301 重定向,以便让用户迁移到新网站。通过执行 301 重定向,您将确保任何页面排名等都将保留在新页面中。

如何执行此操作取决于您,您可以使用 Mod_Rewrite 来执行此操作,或者如果您要更改页面结构,只需保留旧页面并修改它们以执行 301 重定向。

Overall, if possible you want to do a 301 redirect on old URL's if possible to get the users to migrate over to the new site. By doing 301 redirects, you will ensure that any pagerank etc, will carry over with the new page.

How you do this is up to you, you can use Mod_Rewrite to do it, or if you are changing page structures, simply leave old pages in place and modify them to do the 301 redirect.

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