To optimize permalink structure is one of the vital activities when we talk about SEO techniques. The permalinks should be…