WordPress.org

Ready to get started?Download WordPress

Forums

Sideways8 Custom Login and Registration
Too Many Redirects when using Custom Permalinks (1 post)

  1. katart17
    Member
    Posted 10 months ago #

    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() {
            ob_start();
    }
    
    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 bransonliterature.com

    Any ideas why this is happening?

    http://wordpress.org/plugins/s8-custom-login-and-registration/

Reply

You must log in to post.

About this Plugin

About this Topic