Title: Rewrite rules breaking wp-admin
Last modified: March 17, 2023

---

# Rewrite rules breaking wp-admin

 *  Resolved [JacobTheDev](https://wordpress.org/support/users/revxx14/)
 * (@revxx14)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/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, at `includes/class-geodir-
   permalinks.php` at lines `398`–`400` and `732`. In particular, this appears to
   occur on URLs without query strings, such as `wp-admin/plugins.php` or `wp-admin/
   themes.php`, and doesn’t seem to occur on URLs like `wp-admin/edit.php?post_type
   =page`, but we could be mistaken about that.
 * Using Query Monitor, we can see that when `wp-admin/plugins.php` 404s, for example,
   that two rewrite rules match for that URL. We believe your rewrite rules need
   to exclude the `wp-admin` directory, 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.
    -  This topic was modified 3 years, 2 months ago by [JacobTheDev](https://wordpress.org/support/users/revxx14/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-breaking-wp-admin/#post-16570466)
 * Hi,
 * I can’t reproduce what you describe on any of our test site or live demos.
 * All wp-admin pages load without delays. Nobody else ever reported this issue,
   so I think it is specific to the website you are working on.
 * Did you try deactivating all other plugins to see if there is a conflict with
   one of them?
 * Let me know.
 * Thanks,
 *  [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * (@alexrollin)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-breaking-wp-admin/#post-16577196)
 * If you need further help please open a support ticket here: [https://wpgeodirectory.com/support/](https://wpgeodirectory.com/support/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rewrite rules breaking wp-admin’ is closed to new replies.

 * ![](https://ps.w.org/geodirectory/assets/icon-256x256.jpg?rev=2778361)
 * [GeoDirectory - WP Business Directory Plugin and Classified Listings Directory](https://wordpress.org/plugins/geodirectory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geodirectory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geodirectory/)
 * [Active Topics](https://wordpress.org/support/plugin/geodirectory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geodirectory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geodirectory/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-breaking-wp-admin/#post-16577196)
 * Status: resolved