Ready to get started?Download WordPress


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

  1. katart17
    Posted 1 year 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() {
    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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic