On my permalinks settings page I have the following permalink structure defined: "/%year%/%monthnum%/%day%/%postname%/". This works fine for most posts. But I want to have a custom permalink structure for a single category. I've based my solution off of this one:
Now both permalinks work and I wan't the old permalink defined by the permalinks structure on the permalinks page to redirect to the new one defined by generate_rewrite_rules. For example I want the old permalink:
To redirect to:
I've tried to flush the rewrite rules but both permalinks still work.
Is there a function I can use to tell wordpress to redirect the old permalink to this new one?