Unwanted URL with Custom Post Type

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

Leave a Reply

Your email address will not be published. Required fields are marked *