• public function url_rewrites() {
        	add_rewrite_rule( 'mailchimp-feeds/content$', 'index.php?orchestrated-mailchimp-integration-template-content=true', 'top' );
    }
    add_action( 'init', array( $this, 'url_rewrites' ), 10, 0 );
    add_filter('generate_rewrite_rules', array( $this, 'url_rewrites' ));
    • This topic was modified 2 years, 5 months ago by bcworkz. Reason: code format fixed
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    WP rewrite rules are not used with plain permalinks active. All link URLs need to be in the form of URL query strings such as index.php?orchestrated-mailchimp-integration-template-content=true. If you require a rewrite anyway, it needs to be incorporated as .htaccess directives.

Viewing 1 replies (of 1 total)
  • The topic ‘Not redirecting properly when Permalinks on plain’ is closed to new replies.