I am looking for a way to change the permalink structure based on the category a post is in. If the post is in the "blog" category I would like the permalink to be /blog/%postname%/ and if it is any other category just /%postname%/. There used to be a plugin called Advanced Permalinks that could do all of this for you but it is no longer supported. I have researched the topic and can't seem to find a good way to code this myself or any plugins that get the job done.
Any help or suggestions would be appreciated.