格式化wordpress帖子以在URL中使用帖子标题而不是数字自动增量? [英] Format wordpress posts to use post title in URL instead of numeric autoincrement?

查看:23
本文介绍了格式化wordpress帖子以在URL中使用帖子标题而不是数字自动增量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所有的博客文章 URL 目前看起来像这样:http://www.HeyItsMyBlog.com/?p=368

All my blog post URLs currently look like this: http://www.HeyItsMyBlog.com/?p=368

我想更改 URL,使它们看起来像 http://www.HeyItsMyBlog.com/2010/11/new-kittens-omg/

I want to change the URLs so instead they look like http://www.HeyItsMyBlog.com/2010/11/new-kittens-omg/

这是 WordPress 管理面板中的一个简单更改,但是有很多人链接到我目前在网络上格式化的 URL.我如何进行转换并确保它不会破坏旧链接?

This is an easy change in the WordPress admin panel, but there are a bunch of people who have linked to my currently-formatted URLs around the web. How can I make the transition and ensure that it won't break the old links?

推荐答案

Wordpress 的最新版本通过将用户重定向到相应的漂亮 URL 来自动解释 ?p=777 形式的 URL.除了在管理面板中启用漂亮的 URL 之外,您无需执行任何特殊操作.

The latest version of Wordpress automagically interprets URLs of the form ?p=777 by redirecting the user to the corresponding pretty URL. You don't need to do anything special beyond enabling pretty URLs in the admin panel.

这篇关于格式化wordpress帖子以在URL中使用帖子标题而不是数字自动增量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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