Title: [Plugin: NextGEN Gallery] Rewrite Rules Breaking
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Rewrite Rules Breaking

 *  [tfo](https://wordpress.org/support/users/tfo/)
 * (@tfo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-rewrite-rules-breaking/)
 * We are running NextGEN Gallery 1.6.2. For some reason, something about our configuration
   has resulted in a scenario wherein whenever we view the active gallery, edit 
   the active gallery (e.g., changing a caption), reorder images in the active gallery,
   or upload an image to the active gallery, we see that rewrite_rules in wp_option
   gets written without the rules from the RewriteRules function in lib/rewrite.
   php.
 * The workaround is easy: visit Settings->Permalinks and click Save.
 * Unfortunately, if anyone with edit access to the site messes with a gallery and
   doesn’t remember to save Permalinks afterward, we’re left with a gallery full
   of 404s.
 * I’ve isolated the what but I can’t translate that into why yet. It seems like
   something about editing the gallery is resulting in a reset of wp_rewrite->rules
   without the merged ruleset from RewriteRules, but how could that happen?

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

 *  Thread Starter [tfo](https://wordpress.org/support/users/tfo/)
 * (@tfo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-rewrite-rules-breaking/#post-1699740)
 * Forgot to mention that we’re also using NextGen Gallery SEO titles.
 * On a site with a very similar setup (including the titles plugin), we’re not 
   experiencing this issue.
 *  [NelsNose](https://wordpress.org/support/users/nelsnose/)
 * (@nelsnose)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-rewrite-rules-breaking/#post-1700217)
 * See [Custom Post Type UI – 404 error, permalink not work](http://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work?replies=5#post-1753072)

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

The topic ‘[Plugin: NextGEN Gallery] Rewrite Rules Breaking’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [rewriterules](https://wordpress.org/support/topic-tag/rewriterules/)
 * [rewrite_rules](https://wordpress.org/support/topic-tag/rewrite_rules/)
 * [wp_options](https://wordpress.org/support/topic-tag/wp_options/)

 * 2 replies
 * 2 participants
 * Last reply from: [NelsNose](https://wordpress.org/support/users/nelsnose/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-rewrite-rules-breaking/#post-1700217)
 * Status: not resolved