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

permalinks - Redirect old %category%%postname% to just %postname%

programmeradmin3浏览0评论

I changed my posts permalinks from /%category%/%postname%/ to /%postname%/. Now all my old URLs are not working and I want to redirect them to new structure.

How can I do that? I use nginx

I changed my posts permalinks from /%category%/%postname%/ to /%postname%/. Now all my old URLs are not working and I want to redirect them to new structure.

How can I do that? I use nginx

Share Improve this question asked Aug 17, 2020 at 11:45 MadnoMadno 1011 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

Turns out the process is simple.

First, reset the permalinks to the old permalinks.

Then, using the RankMath plugin, from general settings --> Auto post redirect, activate this option and make it on.

Then, change the permalinks structure to the one you desire, and the plugin will automatically do it for you!

发布评论

评论列表(0)

  1. 暂无评论