We've been making some progress on the WPGigs.net project. It's about WordPress jobs.

For some reason the RankMath plugin decides to expose the root custom post type in a sitemap. To avoid duplicate content we redirect /project => /projects. We use RedirectMatch because we want to use a bit of regular expressions to tell that only /project needs to be redirected and not /project/some-project-info-p123 -> /projects

RedirectMatch 301 "/?project/?$" "/projects"

Disclaimer: The content in this post is for educational purposes only. Always remember to take a backup before doing any of the suggested steps just to be on the safe side.
Referral Note: When you purchase through a referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer