I have created a Custom Post type and its own respective taxonomy.
I have for example this URL structure: http://www.example.com/faq/category/sub-category/test-post/
The same content can also be accessible through this link: http://www.example.com/faq/category/test-post/
How can I write a rewrite so the second URL is not available especially for google SEO perspective and avoid duplicate content