Export internal rewrite rules?
-
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.
https://codex.www.ads-software.com/Class_Reference/WP_Rewrite might have useful info, but I don’t know enough to make use of it. I’ve also looked at https://codex.www.ads-software.com/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.
- The topic ‘Export internal rewrite rules?’ is closed to new replies.