Format wordpress posts to use post title in URL instead of numeric autoincrement?

 ̄綄美尐妖づ 提交于 2019-12-25 03:53:38

问题


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

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

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?


回答1:


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.




回答2:


It works either way (when you set the permalink to your desired one). Test it of course. And oh, this question belongs to http://wordpress.stackexchange.com



来源:https://stackoverflow.com/questions/4278130/format-wordpress-posts-to-use-post-title-in-url-instead-of-numeric-autoincrement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!