• This only happens when BP is enabled and when logged in {scratches head}.

    /page/2/ (or any pagination URI) redirects -> /
    And it’s a 301 for sure. headers:

    http://lookatmybikeleaning.com/page/2/

    301: Permanent redirect to http://lookatmybikeleaning.com/
    Server IP Address: 192.185.5.15
    Server: nginx/1.6.2
    Date: Wed, 14 Jan 2015 01:20:11 GMT
    Content-Type: text/html; charset=UTF-8
    Content-Length: 0
    Connection: keep-alive
    X-Pingback: http://lookatmybikeleaning.com/xmlrpc.php
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    Location: http://lookatmybikeleaning.com/
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    Location: http://lookatmybikeleaning.com/

    This is the homepage.

    if ( get_query_var('paged') ) {
    			    $paged = get_query_var('paged');
    			} else if ( get_query_var('page') ) {
    			    $paged = get_query_var('page');
    			} else {
    			    $paged = 1;
    			}
    
    		  $temp = $wp_query;
    		  $wp_query = null;
    		  $wp_query = new WP_Query();
    		  $wp_query->query('showposts=6&post_type=leaning_bikes'.'&paged='.$paged);
    
    		  while ($wp_query->have_posts()) : $wp_query->the_post();
    ...

    I posted this over on the BP support forums but my post does not show up. Perhaps I was marked as a spammer in their recent attack.

    Can anyone else see my topic? https://buddypress.org/?post_type=topic&p=231924

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BuddyPress redirects pagination on hompage’ is closed to new replies.