title: Wordpress rewrite non_wp_rules
body: <p>This is my code: (use default wp theme: twentyfourteen)</p>
  
  <pre><code>function my_rewrite_rules( $wp_rewrite ) {
      $non_wp_rules = array(
          'assets/(.*)'  =&gt; 'wp-content/themes/twentyfourteen/assets/$1',
      );
  
      $wp_rewrite-&gt;non_wp_rules = $non_wp_rules + $wp_rewrite-&gt;non_wp_rules;
  }
  
  function my_flush_rewrite_rules() {
      global $wp_rewrite;
  
      $wp_rewrite-&gt;flush_rules();
  }
  
  add_action( 'init', 'my_flush_rewrite_rules');
  add_action('generate_rewrite_rules', 'my_rewrite_rules');
  </code></pre>
  
  <p>now, i visit link:</p>
  
  <pre><code>mysite.domain/wp-content/themes/twentyfourteen/assets/css/global.css =&gt; //yes, base css file
  mysite.domain/assets/css/global.css =&gt; //not working
  </code></pre>
  
  <p>somebody can help me?</p>