将普通HTML页面更改为ASP .NET aspx页面的最佳"过程"?

Chr*_*aft 1 html asp.net seo

我的网站上有一些页面是纯HTML页面,但我想在这些页面中添加一些ASP .NET类型的功能.我担心的是,如果我简单地将.html页面重命名为.aspx,我将破坏链接,并丢失SEO,等等.

我认为如何处理这种情况有一个"最佳实践".

Fly*_*wat 5

在aspx上创建新页面,只从HTML页面提供301个永久重定向.

搜索蜘蛛足够聪明,可以意识到内容已经移动,不会对您造成不利影响.

谷歌和雅虎都表示,他们解析元刷新没有延迟作为301重定向,所以只做这样的事情:

<html>
<head>
<title>Moved to new URL: http://example.com/newurl</title>
<meta http-equiv="refresh" content="0; url=http://example.com/newurl" />
<meta name="robots" content="noindex,follow" />
</head>
<body>
<h1>This page has been moved to http://example.com/newurl</h1>
<p>If your browser doesn't redirect you to the new location please <a href="http://example.com/newurl"><b>click here</b></a>, sorry for the hassles!</p>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)