简体   繁体   English

WordPress永久链接结构301重定向

[英]Wordpress Permalink Structure 301 Redirect

Currently I am using Wordpress v3.4 and using the following Permalink Custom Structure 目前,我正在使用Wordpress v3.4,并使用以下永久链接自定义结构

/%category%/%postname%-%post_id%.html

Now I want to remove .html from it so I did like this 现在我想从其中删除.html,所以我这样做了

/%post_id%/%postname%/ 

I want to 301 redirect from old structure to new one. 我想301从旧结构重定向到新结构。

Does anyone have the solution or suggestion? 有人有解决方案或建议吗?

只需使用WordPress重定向插件即可管理301重定向,跟踪404错误,并通常整理您的网站可能存在的任何松散结局。

Honestly, you should have never had put the extension, honestly I am surprised that Wordpress allowed this. 老实说,您应该从来没有放过该扩展名,说实话,我很惊讶Wordpress允许这样做。 However, if you change the permalink structure, usually it updates all previous posts and pages. 但是,如果更改永久链接结构,通常它将更新所有以前的帖子和页面。 Is that not the case here? 这里不是这样吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM