Possible Duplicate:
custom post types, wp_get_archives and add_rewrite_rule
I have a custom post type called "course" and I would like to create a date based archive similar to the default post archives which look like mysite.com/2012/05.
I want to use urls like mysite.com/course/2012/05.
How can I do this using the WordPress rewrite API? While avoiding plugins.
This solution is very close How to give a CPT (custom post type) a date based url but I would like to avoid using a query var if possible and stick with the year/month based urls.