• Resolved tkeyesjr

    (@tkeyesjr)


    Keep getting the error “ERR_TOO_MANY_REDIRECTS”. I’m using redirect option to a page I created in Divi.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi

    If you select the redirect option and tell it to redirect to a page on the same site, then this will happen. If you think about it, you’re telling the plugin to redirect to page X, but when WP tries to display page X, the plugin then tries to redirect to page X, which then tries to redirect to page X, which then… and so on, ad infinitum!

    You can add a function to your theme (or child theme) functions.php file to tell the plugin to ignore a specific page or URL, like this:

    function my_wpjf3_matches( $wpjf3_matches ) {
    	if ( stristr( $_SERVER['REQUEST_URI'], 'demo' ) ) 
    		$wpjf3_matches[] = "<!-- Demo -->";
    	return $wpjf3_matches;
    }
    add_filter( "wpjf3_matches", "my_wpjf3_matches" );

    This example looks in the $_SERVER global to see if any part of the URL contains “demo”.

    Hope that helps

    Peter

Viewing 1 replies (of 1 total)
  • The topic ‘getting ERR_TOO_MANY_REDIRECTS’ is closed to new replies.