Export internal rewrite rules?

Re: How-To and Troubleshooting

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).

Others have asked this 8 years ago and 4 years ago with no answer. “4 years ago” seems to refer to a plugin that lets one view the rules, but I don’t see anything like that in the plugin repository.

[Discuss at WordPress.org]

Comments (1)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>