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

Change permalink structure

programmeradmin1浏览0评论

I changed the permalink structure from /%category%/%postname%/ to /%category%/%post_id%/

What url should I put in the .htaccess file?

Thanks

I changed the permalink structure from /%category%/%postname%/ to /%category%/%post_id%/

What url should I put in the .htaccess file?

Thanks

Share Improve this question edited Jun 18, 2019 at 15:13 MikeNGarrett 2,6711 gold badge20 silver badges29 bronze badges asked Jun 18, 2019 at 14:55 Cédric JazzrockCédric Jazzrock 1 2
  • 3 You shouldn't need to put anything in the htaccess file. Is something not working? – Jacob Peattie Commented Jun 18, 2019 at 14:56
  • Yes 404 arrived exemple : bricolage.fr/outillage-electroportatif/scies-circulaires/… – Cédric Jazzrock Commented Jun 18, 2019 at 15:24
Add a comment  | 

1 Answer 1

Reset to default 0

You've changed the url structure to end with the post id, not the post name so your reference link will go to a 404. That's correct behaviour. If you look at the URLs of the pages in your right-hand menu you will see they end in a number, not a name: https://www.bricolage.fr/outillage-electroportatif/scies-circulaires/4023/ If you want to redirect the post name url to the post id url you should install a redirect plugin.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论