[wp-trac] [WordPress Trac] #22084: Tag pagination issue on nginx-hosted installs
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 3 15:52:20 UTC 2012
#22084: Tag pagination issue on nginx-hosted installs
-----------------------------+---------------------------
Reporter: iridox | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Rewrite Rules
Version: | Severity: normal
Keywords: |
-----------------------------+---------------------------
Due to the seeming lack of tickets on this, I'm going to assume it's an
nginx-specific issue.
Basically, since 3.4 I've had to include a custom function on each of my
nginx-hosted WordPress installations to get tag pagination to work:
{{{
add_action('init','yoursite_init');
function yoursite_init() {
global $wp_rewrite;
//add rewrite rule.
add_rewrite_rule("tag/(.+?)/page/?([0-9]{1,})/?$",'index.php?tag=$matches[1]&paged=$matches[2]','top');
$wp_rewrite->flush_rules(false);
}
}}}
Without the code block, I either get a 310 Error (redirect loop) or a
random page is spitted out.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22084>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list