Skip to content

Instantly share code, notes, and snippets.

@whyisjake
Created November 29, 2011 19:50
Show Gist options
  • Save whyisjake/1406165 to your computer and use it in GitHub Desktop.
Save whyisjake/1406165 to your computer and use it in GitHub Desktop.
ReWrite Rules
string(16375) "WP_Rewrite::__set_state(array(
'permalink_structure' => '/%year%/%monthnum%/%postname%/',
'use_trailing_slashes' => true,
'author_base' => 'author',
'search_base' => 'search',
'comments_base' => 'comments',
'pagination_base' => 'page',
'feed_base' => 'feed',
'comments_feed_structure' => NULL,
'front' => '/',
'root' => '',
'index' => 'index.php',
'matches' => '',
'rules' =>
array (
'blog-post/?$' => 'index.php?post_type=blog-post',
'blog-post/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=blog-post&feed=$matches[1]',
'blog-post/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=blog-post&feed=$matches[1]',
'blog-post/page/([0-9]{1,})/?$' => 'index.php?post_type=blog-post&paged=$matches[1]',
'category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&feed=$matches[2]',
'category/(.+?)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&feed=$matches[2]',
'category/(.+?)/page/?([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&paged=$matches[2]',
'category/(.+?)/?$' => 'index.php?category_name=$matches[1]',
'tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?tag=$matches[1]&feed=$matches[2]',
'tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?tag=$matches[1]&feed=$matches[2]',
'tag/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?tag=$matches[1]&paged=$matches[2]',
'tag/([^/]+)/?$' => 'index.php?tag=$matches[1]',
'type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_format=$matches[1]&feed=$matches[2]',
'type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_format=$matches[1]&feed=$matches[2]',
'type/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?post_format=$matches[1]&paged=$matches[2]',
'type/([^/]+)/?$' => 'index.php?post_format=$matches[1]',
'blog-category/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?blog-category=$matches[1]&feed=$matches[2]',
'blog-category/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?blog-category=$matches[1]&feed=$matches[2]',
'blog-category/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?blog-category=$matches[1]&paged=$matches[2]',
'blog-category/([^/]+)/?$' => 'index.php?blog-category=$matches[1]',
'blog-tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?blog-tag=$matches[1]&feed=$matches[2]',
'blog-tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?blog-tag=$matches[1]&feed=$matches[2]',
'blog-tag/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?blog-tag=$matches[1]&paged=$matches[2]',
'blog-tag/([^/]+)/?$' => 'index.php?blog-tag=$matches[1]',
'complexity/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?complexity=$matches[1]&feed=$matches[2]',
'complexity/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?complexity=$matches[1]&feed=$matches[2]',
'complexity/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?complexity=$matches[1]&paged=$matches[2]',
'complexity/([^/]+)/?$' => 'index.php?complexity=$matches[1]',
'components/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?components=$matches[1]&feed=$matches[2]',
'components/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?components=$matches[1]&feed=$matches[2]',
'components/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?components=$matches[1]&paged=$matches[2]',
'components/([^/]+)/?$' => 'index.php?components=$matches[1]',
'documentation/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?documentation=$matches[1]&feed=$matches[2]',
'documentation/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?documentation=$matches[1]&feed=$matches[2]',
'documentation/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?documentation=$matches[1]&paged=$matches[2]',
'documentation/([^/]+)/?$' => 'index.php?documentation=$matches[1]',
'community/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?community=$matches[1]&feed=$matches[2]',
'community/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?community=$matches[1]&feed=$matches[2]',
'community/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?community=$matches[1]&paged=$matches[2]',
'community/([^/]+)/?$' => 'index.php?community=$matches[1]',
'completeness/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?completeness=$matches[1]&feed=$matches[2]',
'completeness/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?completeness=$matches[1]&feed=$matches[2]',
'completeness/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?completeness=$matches[1]&paged=$matches[2]',
'completeness/([^/]+)/?$' => 'index.php?completeness=$matches[1]',
'maker/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?maker=$matches[1]&feed=$matches[2]',
'maker/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?maker=$matches[1]&feed=$matches[2]',
'maker/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?maker=$matches[1]&paged=$matches[2]',
'maker/([^/]+)/?$' => 'index.php?maker=$matches[1]',
'blog-post/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'blog-post/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'blog-post/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'blog-post/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'blog-post/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'blog-post/([^/]+)/trackback/?$' => 'index.php?blog-post=$matches[1]&tb=1',
'blog-post/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?blog-post=$matches[1]&feed=$matches[2]',
'blog-post/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?blog-post=$matches[1]&feed=$matches[2]',
'blog-post/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?blog-post=$matches[1]&paged=$matches[2]',
'blog-post/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?blog-post=$matches[1]&cpage=$matches[2]',
'blog-post/([^/]+)(/[0-9]+)?/?$' => 'index.php?blog-post=$matches[1]&page=$matches[2]',
'blog-post/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'blog-post/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'blog-post/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'blog-post/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'blog-post/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'robots\\.txt$' => 'index.php?robots=1',
'.*wp-atom.php$' => 'index.php?feed=atom',
'.*wp-rdf.php$' => 'index.php?feed=rdf',
'.*wp-rss.php$' => 'index.php?feed=rss',
'.*wp-rss2.php$' => 'index.php?feed=rss2',
'.*wp-feed.php$' => 'index.php?feed=feed',
'.*wp-commentsrss2.php$' => 'index.php?feed=rss2&withcomments=1',
'feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]',
'(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]',
'page/?([0-9]{1,})/?$' => 'index.php?&paged=$matches[1]',
'comments/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]&withcomments=1',
'comments/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]&withcomments=1',
'comments/page/?([0-9]{1,})/?$' => 'index.php?&paged=$matches[1]',
'search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?s=$matches[1]&feed=$matches[2]',
'search/(.+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?s=$matches[1]&feed=$matches[2]',
'search/(.+)/page/?([0-9]{1,})/?$' => 'index.php?s=$matches[1]&paged=$matches[2]',
'search/(.+)/?$' => 'index.php?s=$matches[1]',
'author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?author_name=$matches[1]&feed=$matches[2]',
'author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?author_name=$matches[1]&feed=$matches[2]',
'author/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?author_name=$matches[1]&paged=$matches[2]',
'author/([^/]+)/?$' => 'index.php?author_name=$matches[1]',
'([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]',
'([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]',
'([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&paged=$matches[4]',
'([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]',
'([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]',
'([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]',
'([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]',
'([0-9]{4})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]',
'([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&feed=$matches[2]',
'([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&feed=$matches[2]',
'([0-9]{4})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&paged=$matches[2]',
'([0-9]{4})/?$' => 'index.php?year=$matches[1]',
'[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'([0-9]{4})/([0-9]{1,2})/([^/]+)/trackback/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&tb=1',
'([0-9]{4})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&feed=$matches[4]',
'([0-9]{4})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&feed=$matches[4]',
'([0-9]{4})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&paged=$matches[4]',
'([0-9]{4})/([0-9]{1,2})/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&cpage=$matches[4]',
'([0-9]{4})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&page=$matches[4]',
'[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'([0-9]{4})/([0-9]{1,2})/comment-page-([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&cpage=$matches[3]',
'([0-9]{4})/comment-page-([0-9]{1,})/?$' => 'index.php?year=$matches[1]&cpage=$matches[2]',
'.+?/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'.+?/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'(.+?)/trackback/?$' => 'index.php?pagename=$matches[1]&tb=1',
'(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?pagename=$matches[1]&feed=$matches[2]',
'(.+?)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?pagename=$matches[1]&feed=$matches[2]',
'(.+?)/page/?([0-9]{1,})/?$' => 'index.php?pagename=$matches[1]&paged=$matches[2]',
'(.+?)/comment-page-([0-9]{1,})/?$' => 'index.php?pagename=$matches[1]&cpage=$matches[2]',
'(.+?)(/[0-9]+)?/?$' => 'index.php?pagename=$matches[1]&page=$matches[2]',
),
'extra_rules' =>
array (
),
'extra_rules_top' =>
array (
'blog-post/?$' => 'index.php?post_type=blog-post',
'blog-post/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=blog-post&feed=$matches[1]',
'blog-post/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=blog-post&feed=$matches[1]',
'blog-post/page/([0-9]{1,})/?$' => 'index.php?post_type=blog-post&paged=$matches[1]',
),
'non_wp_rules' =>
array (
),
'extra_permastructs' =>
array (
'category' =>
array (
0 => '/category/%category%',
1 => 0,
),
'post_tag' =>
array (
0 => '/tag/%post_tag%',
1 => 0,
),
'post_format' =>
array (
0 => '/type/%post_format%',
1 => 0,
),
'blog-category' =>
array (
0 => '/blog-category/%blog-category%',
1 => 0,
),
'blog-tag' =>
array (
0 => '/blog-tag/%blog-tag%',
1 => 0,
),
'complexity' =>
array (
0 => '/complexity/%complexity%',
1 => 0,
),
'components' =>
array (
0 => '/components/%components%',
1 => 0,
),
'documentation' =>
array (
0 => '/documentation/%documentation%',
1 => 0,
),
'community' =>
array (
0 => '/community/%community%',
1 => 0,
),
'completeness' =>
array (
0 => '/completeness/%completeness%',
1 => 0,
),
'maker' =>
array (
0 => '/maker/%maker%',
1 => 0,
),
'blog-post' =>
array (
0 => '/blog-post/%blog-post%',
1 => 1,
),
),
'endpoints' =>
array (
),
'use_verbose_rules' => false,
'use_verbose_page_rules' => false,
'rewritecode' =>
array (
0 => '%year%',
1 => '%monthnum%',
2 => '%day%',
3 => '%hour%',
4 => '%minute%',
5 => '%second%',
6 => '%postname%',
7 => '%post_id%',
8 => '%author%',
9 => '%pagename%',
10 => '%search%',
11 => '%category%',
12 => '%post_tag%',
13 => '%post_format%',
14 => '%blog-category%',
15 => '%blog-tag%',
16 => '%complexity%',
17 => '%components%',
18 => '%documentation%',
19 => '%community%',
20 => '%completeness%',
21 => '%maker%',
22 => '%blog-post%',
),
'rewritereplace' =>
array (
0 => '([0-9]{4})',
1 => '([0-9]{1,2})',
2 => '([0-9]{1,2})',
3 => '([0-9]{1,2})',
4 => '([0-9]{1,2})',
5 => '([0-9]{1,2})',
6 => '([^/]+)',
7 => '([0-9]+)',
8 => '([^/]+)',
9 => '([^/]+?)',
10 => '(.+)',
11 => '(.+?)',
12 => '([^/]+)',
13 => '([^/]+)',
14 => '([^/]+)',
15 => '([^/]+)',
16 => '([^/]+)',
17 => '([^/]+)',
18 => '([^/]+)',
19 => '([^/]+)',
20 => '([^/]+)',
21 => '([^/]+)',
22 => '([^/]+)',
),
'queryreplace' =>
array (
0 => 'year=',
1 => 'monthnum=',
2 => 'day=',
3 => 'hour=',
4 => 'minute=',
5 => 'second=',
6 => 'name=',
7 => 'p=',
8 => 'author_name=',
9 => 'pagename=',
10 => 's=',
11 => 'category_name=',
12 => 'tag=',
13 => 'post_format=',
14 => 'blog-category=',
15 => 'blog-tag=',
16 => 'complexity=',
17 => 'components=',
18 => 'documentation=',
19 => 'community=',
20 => 'completeness=',
21 => 'maker=',
22 => 'blog-post=',
),
'feeds' =>
array (
0 => 'feed',
1 => 'rdf',
2 => 'rss',
3 => 'rss2',
4 => 'atom',
),
))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment