Rewrite rules breaking wp-admin
-
Our client is having quite an odd issue; when trying to visit pages within
wp-admin, pages often load for several minutes, then return a WordPress 404. I believe I’ve tracked this down to your rewrite rules, atincludes/class-geodir-permalinks.phpat lines398–400and732. In particular, this appears to occur on URLs without query strings, such aswp-admin/plugins.phporwp-admin/themes.php, and doesn’t seem to occur on URLs likewp-admin/edit.php?post_type=page, but we could be mistaken about that.Using Query Monitor, we can see that when
wp-admin/plugins.php404s, for example, that two rewrite rules match for that URL. We believe your rewrite rules need to exclude thewp-admindirectory, or possibly any URL with.php, We’re not sure which would be preferable.We’ve spent about 5 hours at this point trying to track this down, and we’re about 80% sure it’s this plugin causing the issue, but we’ll try to do more testing and report back as soon as we can; the issue is somewhat intermittent, so it’s difficult to test.
The topic ‘Rewrite rules breaking wp-admin’ is closed to new replies.