How can I export WordPress’s internal rewrite rules to an htaccess file? I’m thinking of leaving WordPress, but I’ve changed my permalink structure a few times over the years and want to keep all my urls alive.
http://codex.wordpress.org/Class_Reference/WP_Rewrite might have useful info, but I don’t know enough to make use of it. I’ve also looked at http://codex.wordpress.org/Using_Permalinks .
As an unappealing fallback, I could use a plugin to make a sitemap for each permalink scheme, then compare them and try to derive rules. This would leave out any posts whose slug might have changed if I renamed them, but there probably aren’t many of those (and maybe none that anyone linked to).