如何在 wordpress 中更新我的永久链接结构? [英] How can I update my permalink structure in wordpress?

查看:96
本文介绍了如何在 wordpress 中更新我的永久链接结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我博客的旧网址 (wp 2.2)http://myblog.com/category-name/post-name

This is the old url of my blog (wp 2.2) http://myblog.com/category-name/post-name

例如.http://myblog.com/shoes/i-like-shoes

我正在尝试将其更改为http://myblog.com/post-id/post-name.html

例如.http://myblog.com/717/this-is-my-first-post.html

我正在将我的内容从 wp2.2 移动到 wp2.8,我想将当前内容的所有类别从现在更改为经典"

Im moving my content from wp2.2 to wp2.8 and i want to change all the categories for the current content from whatever it is now to "classic"

问题当然是我的一些页面的页面排名很高,我需要维护这个......

The problem of course is that some of my pages have a high page rank and I need to maintain this...

这让我很头疼.

感谢您的帮助!

推荐答案

转到:http://myblog.com/wp-admin/options-permalink.php.或者,如果您想手动导航:),请转到您的 wordpress 仪表板.在设置"菜单中,转到永久链接".

Go to: http://myblog.com/wp-admin/options-permalink.php. Or, if you want to navigate manually :), go to your wordpress dashboard. In the Settings menu go to "Permalinks".

另请参阅 http://codex.wordpress.org/Using_Permalinks 了解更多详情,尤其是用于制作自定义永久链接的字段.

Also see http://codex.wordpress.org/Using_Permalinks for more detail, especially the fields for making custom permalinks.

编辑

引用以上内容,

将 %category% 用于帖子的多个类别,或 %tag%

当您为帖子分配多个类别时,永久链接中只能显示一个类别.这将是编号最低的类别(请参阅管理类别).该帖子仍可通过所有类别正常访问.

When you assign multiple categories to a post, only one can show up in the permalink. This will be the lowest numbered category (see Manage Categories). The post will still be accessible through all the categories as normal.

同样的事情适用于在您的永久链接结构中使用 %tag% 字段.

The same thing applies to using the %tag% field in your permalink structure.

所以...只要经典"是您使用的编号最小的类别,它将用作永久链接中的类别名称.

So... As long as "classic" is the lowest numbered category you use, that will work as the category name in the permalink.

然而,您的结构变化会破坏指向您帖子的任何外部链接,因此您的页面排名也会发生变化.不幸的是,您需要选择哪个更重要:更改为没有类别名称的永久链接,或保持旧帖子的 pagerank.

Your change in structure however will break any external links pointing to your posts so your page rank is going to change as well. Unfortunately you need to choose which is more important: changing to permalinks without category names, or maintaining the pagerank of old posts.

这篇关于如何在 wordpress 中更新我的永久链接结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆