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
1 Answer
Reset to default 0You'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.