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

What url should I put in the .htaccess file?



1 Answer 1


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.

  • Thank you for your answer I do not want 404 error, my configuration is good yes, but is old address, I do not want that. I can not redirect them 1 to 1 I have more than 1000..It is necessary to modify the file so that it puts in place the new structure as on my post 1 but I do not know what is the command line. . Commented Jun 18, 2019 at 21:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.