简体   繁体   English

将静态网站转换为Wordpress网站...如何转移/转换SEO排名?

[英]Converting a static site to a Wordpress site…how to transfer/convert SEO rankings?

I'm going to convert a client's static site, all hand coded HTML pages to Wordpress. 我打算将客户的静态站点,所有手动编码的HTML页面转换为Wordpress。 They have a bunch of static pages that I'm going to keep as 'pages' in Wordpress. 他们有一堆静态页面,我将这些页面保留为Wordpress中的“页面”。 There will be some static content that I'm going to convert into blog entries (and back date them). 我将要把一些静态内容转换为博客条目(并回溯日期)。

How do I transfer their search engine rankings to the new Wordpress site? 如何将他们的搜索引擎排名转移到新的Wordpress网站? Some will be a static page converted to a Wordpress 'page' and some will be a static page converted to a blog entry? 有的将静态页面转换为Wordpress“页面”,有的将静态页面转换为博客条目?

Use 301 redirects in your .htaccess in root. 在根目录的.htaccess中使用301重定向。 All search bots recognize 301 redirects as permanent redirects and don't drop the pages from indexes, but reassign the URL. 所有搜索漫游器都将301重定向视为永久重定向,并且不会从索引中删除页面,而是重新分配URL。 Put them above the Wordpress rewrite block in .htaccess. 将它们放在.htaccess中的Wordpress重写块上方。

The format is: 格式为:

Redirect 301 /myoldurl.html http://mydomain.com/newpagename

Notice that the domain is not included in the first URL, only the page name with suffix, assuming it's in root. 请注意,假定该域位于根目录中,则该域不包含在第一个URL中,仅包含带后缀的页面名称。

Or use WordPress › Redirection « WordPress Plugins to manage redirects inside the WP admin area and log them, too. 或使用WordPress›重定向«WordPress插件来管理WP管理区域内的重定向并也将其记录下来。

You can usually create a permalink structure to match the client's old URL structure. 通常,您可以创建一个永久链接结构来匹配客户端的旧URL结构。

This is better than the htaccess approach since it is easier to maintain long term. 这比htaccess方法更好,因为它更易于长期维护。 The client won't have to adapt to a new URL structure, and you won't lose any SEO value as you would with 301s ( http://www.marketingpilgrim.com/2010/03/google-confirms-301-redirects-result-in-pagerank-loss.html ). 客户端将不必适应新的URL结构,也不会像使用301时那样失去任何SEO值( http://www.marketingpilgrim.com/2010/03/google-confirms-301-redirects -result-in-pagerank-loss.html )。

For example if the old client URL was: 例如,如果旧的客户端URL是:

http://www.example.com/blue/widgets.html

you can use the permalink structure of: 您可以使用以下的永久链接结构:

/%category%/%postname%.html

You would then create a page (or post) with the post slug of 'widgets' and categorize the page within the 'blue' category which would give you the exact same URL as they had before. 然后,您将创建一个带有“ widgets”帖子标签的页面(或帖子),并将该页面归类为“ blue”类别,这将为您提供与以前完全相同的URL。

If the old site uses a variety of inconsistent URL formats, this approach is slightly less effective. 如果旧站点使用各种不一致的URL格式,则此方法的效果会稍差一些。 But you can still do this with the most used URL format, then 301 the other URL formats. 但是您仍然可以使用最常用的URL格式,然后使用其他URL格式301。

Hope this helps! 希望这可以帮助!

In your destination server, you can customize the .htaccess file to redirect old pages URL to new ones. 在目标服务器中,您可以自定义.htaccess文件以将旧页面URL重定向到新页面。 The old URL will still work and the page rank will be kept. 旧的URL仍然有效,并且页面排名将保持不变。

I would consider using Jekyll to do this. 我会考虑使用Jekyll来做到这一点。 It will enable you to create exactly the same site with the same HTML structure. 这将使您能够创建具有相同HTML结构的完全相同的站点。 It will give you full control, and therefore not damage SEO. 它会给您完全控制,因此不会损害SEO。 You can add CloudCannon as a CMS and make your site responsive using media queries, like this: http://www.usecue.com/2016/04/21/two-viewports-to-rule-them-all.html . 您可以将CloudCannon添加为CMS,并使用媒体查询使您的网站响应,例如: http ://www.usecue.com/2016/04/21/two-viewports-to-rule-them-all.html。 Baby steps will avoid SEO disasters. 轻松的步骤将避免SEO灾难。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM