-
My current permalink structure is
/%category%/%postname%/
which produce urls as:
(category_base removed)category: example.com/class-10/science/ ◀▬ SLASH is GOOD for directories & ↙ parent pages page: example.com/legal/ post: example.com/class-10/science/ch-1-atoms/ ◀▬ but BAD for single_post, ↖ child pages & page: example.com/legal/terms/ page: example.com/about/ ◀▬ standalone pages
So, I want to
𝗸𝗲𝗲𝗽 TRAILING SLASH “/” on:
• categories and child categories
• parent pages𝗿𝗲𝗺𝗼𝘃𝗲 TRAILING SLASH “/” on:
• single_posts
• standalone page (who don’t have any child pages)
• child pages𝗔𝗡𝗗 “𝟯𝟬𝟭” 𝗥𝗲𝗱𝗶𝗿𝗲𝗰𝘁 “/” 𝘃𝗲𝗿𝘀𝗶𝗼𝗻 𝗼𝗳 𝘁𝗵𝗲𝘀𝗲 ↖ 𝗽𝗮𝗴𝗲𝘀 𝘁𝗼 𝗡𝗢𝗡 “/” 𝘃𝗲𝗿𝘀𝗶𝗼𝗻 𝗽𝗮𝗴𝗲𝘀