I created a custom post type. It’s book and my url look like example.com/book/a-book I show books on example.com/books but there is example.com/book how can I delete that URL or show 404. In this case my sitemap shows that url: example.com/book

Read more here: Unwanted URL with Custom Post Type


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: