Hi I want to change my link structure in myy wordpress based website.
My old link structure is www.mydomain.com/%post_id%/%year%/%monthnum%/%postname%/
.
My new url structure will be : www.mydomain.com/%postname%/
.
Also I am using nginx webserver .
How can ı do redirect my old urls to new.
您可以在nginx中尝试以下重写规则:
rewrite /[0-9]+/[0-9]+/[0-9]+/(.+)$ /$1 permanent;
您应该只需要能够在管理面板的阅读部分中更新永久链接结构即可。Wordpress将处理其余部分。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.