Support » Plugin: Sideways8 Custom Login and Registration » Too Many Redirects when using Custom Permalinks

  • katart17


    I’ve created my own redirect within the functions.php file:

    //allow redirection, even if my theme starts to send output to the browser
    add_action('init', 'do_output_buffer');
    function do_output_buffer() {
    function checkLogged() {
    	if (!is_user_logged_in() && 58 != get_queried_object_id() && 60 != get_queried_object_id() && 63 != get_queried_object_id()) {
        	wp_redirect( home_url('/?page_id=58') ); exit;
    add_action('wp_head', 'checkLogged');

    And I’m using the Sideways8 Login form. This works fine when using the default permalinks setting, but whenever I change to a custom Permalink setting, I can’t access the site because of the Too Many Redirects.

    The site is

    Any ideas why this is happening?

  • The topic ‘Too Many Redirects when using Custom Permalinks’ is closed to new replies.