最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Do changes to Wordpress permalink custom structure affect old urls?

programmeradmin1浏览0评论

Will changing WP permalink custom structure affect old posts URL?

For example. I have a large group of posts that follow this custom structure: /blog/%category%/%postname%/

I want to change it to /blog/

Or better yet, be able to manually add structure after the root domain for every post.

So that I have the option to manually enter /%category%/%postname%/

I'm hoping that changing my permalink custom structure will only affect new posts going forward and old posts remain unchanged.

Will changing WP permalink custom structure affect old posts URL?

For example. I have a large group of posts that follow this custom structure: /blog/%category%/%postname%/

I want to change it to /blog/

Or better yet, be able to manually add structure after the root domain for every post.

So that I have the option to manually enter /%category%/%postname%/

I'm hoping that changing my permalink custom structure will only affect new posts going forward and old posts remain unchanged.

Share Improve this question asked Sep 4, 2015 at 19:36 SajadSajad 1
  • do you want to apply blog in every URL ? like category name in permalink ? – Noman Commented Sep 4, 2015 at 19:45
Add a comment  | 

2 Answers 2

Reset to default 1

Yes.

You may want to use a redirect plugin to setup redirect rules for your inactive urls.

Yes, absolutely. Upon clicking "Save" in the Permalinks page, a command is sent to the database to update the new URL structure.

It doesn't matter whether your URLs are active or inactive, if you change the permalink structure it is a "global" change and all single posts will follow that.

To give you a direct answer: All. New and Old URLs will be changed.

发布评论

评论列表(0)

  1. 暂无评论