WP Super Cache
Possible to hide "Rewrite rules must be updated" message on nginx? (4 posts)

  1. Einkoro
    Posted 2 years ago #

    I have manually setup everything but since its checking for htaccess as if it was apache the message is always displayed in wp-admin. Would it be possible to add an option to hide the message?


  2. Pothi
    Posted 2 years ago #

    Using this one-liner as a mu-plugin... https://github.com/pothi/WordPress-Nginx/blob/master/mu-plugins/nginx-rewrite-compatibility.php removes that message in WPSC. I hope that helps!

  3. Einkoro
    Posted 2 years ago #

    I'm actually already using that, more or less, although removing the priority didn't make a difference from the one I already had:

    // Remove annoying index.php in permalinks settings with Nginx.
    add_filter( 'got_rewrite', '__return_true', 999 );
    // For compatibility with several plugins and nginx HTTPS proxying schemes
    if ( empty( $_SERVER[ 'HTTPS' ] ) || 'off' == $_SERVER[ 'HTTPS' ] ) {
        unset( $_SERVER[ 'HTTPS' ] );

    WPSC still displays the mod rewrite message despite that.

  4. Pothi
    Posted 2 years ago #

    I could not figure out why that solution doesn't work on your site. Sorry!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.