Skip to content

Instantly share code, notes, and snippets.

@landbryo
Created February 28, 2024 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save landbryo/ff5575b3034bffcf5e84d095a31554f9 to your computer and use it in GitHub Desktop.
Save landbryo/ff5575b3034bffcf5e84d095a31554f9 to your computer and use it in GitHub Desktop.
Rewrite rules export
<?php
$rules = array (
'ad/([0-9]+)/[^/]+/?$' => 'index.php?permalink_id=$matches[1]',
'^wp-json/?$' => 'index.php?rest_route=/',
'^wp-json/(.*)?' => 'index.php?rest_route=/$matches[1]',
'^index.php/wp-json/?$' => 'index.php?rest_route=/',
'^index.php/wp-json/(.*)?' => 'index.php?rest_route=/$matches[1]',
'^wp-sitemap\\.xml$' => 'index.php?sitemap=index',
'^wp-sitemap\\.xsl$' => 'index.php?sitemap-stylesheet=sitemap',
'^wp-sitemap-index\\.xsl$' => 'index.php?sitemap-stylesheet=index',
'^wp-sitemap-([a-z]+?)-([a-z\\d_-]+?)-(\\d+?)\\.xml$' => 'index.php?sitemap=$matches[1]&sitemap-subtype=$matches[2]&paged=$matches[3]',
'^wp-sitemap-([a-z]+?)-(\\d+?)\\.xml$' => 'index.php?sitemap=$matches[1]&paged=$matches[2]',
'authors/([^/]+)/?$' => 'index.php?author_name=$matches[1]',
'authors/([^/]+)/archives/?$' => 'index.php?author_name=$matches[1]',
'authors/([^/]+)/archives/([0-9]+)/?$' => 'index.php?author_name=$matches[1]&paged=$matches[2]',
'wp-content/uploads/sites/[0-9]+/(.+)/?$' => 'index.php?attachment=$matches[1]',
'pages/(.+?)/?$' => 'index.php?pagename=$matches[1]',
'([0-9]+)/[^/]+/?$' => 'index.php?permalink_id=$matches[1]',
'[^/]+/([0-9]+)/[^/]+/?$' => 'index.php?permalink_id=$matches[1]',
'[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/([0-9]+)/[^/]+/?$' => 'index.php?permalink_id=$matches[1]',
'[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/([0-9]+)/?$' => 'index.php?permalink_id=$matches[1]',
'[^/]+/[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/([0-9]+)/[^/]+/?$' => 'index.php?permalink_id=$matches[1]',
'authors/([^/]+)/rss/?$' => 'index.php?author_name=$matches[1]&feed=atom',
'rss/(.+?)/index.xml' => 'index.php?category_name=$matches[1]&feed=atom',
'rss/index.xml' => 'index.php?feed=atom',
'graphql/?$' => 'index.php?graphql=true',
'e/([0-9]+)/?$' => 'index.php?shortlink_id=$matches[1]',
'rss/partner/?(.+[^/])/rss.xml?' => 'index.php?&feed=$matches[1]',
'category/(.+?)/embed/?$' => 'index.php?category_name=$matches[1]&embed=true',
'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/([^/]+)/embed/?$' => 'index.php?tag=$matches[1]&embed=true',
'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/([^/]+)/embed/?$' => 'index.php?post_format=$matches[1]&embed=true',
'type/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?post_format=$matches[1]&paged=$matches[2]',
'type/([^/]+)/?$' => 'index.php?post_format=$matches[1]',
'authors/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'authors/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'authors/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'authors/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'authors/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'authors/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'authors/([^/]+)/embed/?$' => 'index.php?vm_author_profile=$matches[1]&embed=true',
'authors/([^/]+)/trackback/?$' => 'index.php?vm_author_profile=$matches[1]&tb=1',
'authors/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?vm_author_profile=$matches[1]&paged=$matches[2]',
'authors/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?vm_author_profile=$matches[1]&cpage=$matches[2]',
'authors/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?vm_author_profile=$matches[1]&page=$matches[2]',
'authors/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'authors/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'authors/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'authors/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'vm_package/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'vm_package/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'vm_package/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_package/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_package/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'vm_package/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'vm_package/([^/]+)/embed/?$' => 'index.php?vm_package=$matches[1]&embed=true',
'vm_package/([^/]+)/trackback/?$' => 'index.php?vm_package=$matches[1]&tb=1',
'vm_package/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?vm_package=$matches[1]&paged=$matches[2]',
'vm_package/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?vm_package=$matches[1]&cpage=$matches[2]',
'vm_package/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?vm_package=$matches[1]&page=$matches[2]',
'vm_package/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'vm_package/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'vm_package/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_package/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_package/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'vm_package/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'vm_stream/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'vm_stream/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'vm_stream/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_stream/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_stream/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'vm_stream/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'vm_stream/([^/]+)/embed/?$' => 'index.php?vm_stream=$matches[1]&embed=true',
'vm_stream/([^/]+)/trackback/?$' => 'index.php?vm_stream=$matches[1]&tb=1',
'vm_stream/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?vm_stream=$matches[1]&paged=$matches[2]',
'vm_stream/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?vm_stream=$matches[1]&cpage=$matches[2]',
'vm_stream/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?vm_stream=$matches[1]&page=$matches[2]',
'vm_stream/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'vm_stream/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'vm_stream/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_stream/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_stream/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'vm_stream/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'rss/partner/%feed_slug%/rss.xml/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'rss/partner/%feed_slug%/rss.xml/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'rss/partner/%feed_slug%/rss.xml/([^/]+)/embed/?$' => 'index.php?%feed_slug%$matches[1]&vm_feed=$matches[2]&embed=true',
'rss/partner/%feed_slug%/rss.xml/([^/]+)/trackback/?$' => 'index.php?%feed_slug%$matches[1]&vm_feed=$matches[2]&tb=1',
'rss/partner/%feed_slug%/rss.xml/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?%feed_slug%$matches[1]&vm_feed=$matches[2]&paged=$matches[3]',
'rss/partner/%feed_slug%/rss.xml/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?%feed_slug%$matches[1]&vm_feed=$matches[2]&cpage=$matches[3]',
'rss/partner/%feed_slug%/rss.xml/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?%feed_slug%$matches[1]&vm_feed=$matches[2]&page=$matches[3]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'rss/partner/%feed_slug%/rss.xml/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'rss/partner/%feed_slug%/rss.xml/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'rss/partner/%feed_slug%/rss.xml/page/?([0-9]{1,})/?$' => 'index.php?%feed_slug%$matches[1]&paged=$matches[2]',
'rss/partner/%feed_slug%/rss.xml/comment-page-([0-9]{1,})/?$' => 'index.php?%feed_slug%$matches[1]&cpage=$matches[2]',
'rss/partner/%feed_slug%/rss.xml/?$' => 'index.php?%feed_slug%$matches[1]',
'rss/partner/%feed_slug%/page/?([0-9]{1,})/?$' => 'index.php?%feed_slug%$matches[1]&paged=$matches[2]',
'rss/partner/%feed_slug%/comment-page-([0-9]{1,})/?$' => 'index.php?%feed_slug%$matches[1]&cpage=$matches[2]',
'rss/partner/%feed_slug%/?$' => 'index.php?%feed_slug%$matches[1]',
'ad/hub/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?vm_campaign_term=$matches[1]&feed=$matches[2]',
'ad/hub/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?vm_campaign_term=$matches[1]&feed=$matches[2]',
'ad/hub/([^/]+)/embed/?$' => 'index.php?vm_campaign_term=$matches[1]&embed=true',
'ad/hub/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?vm_campaign_term=$matches[1]&paged=$matches[2]',
'ad/hub/([^/]+)/?$' => 'index.php?vm_campaign_term=$matches[1]',
'vm_ceros_story/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'vm_ceros_story/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'vm_ceros_story/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_ceros_story/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_ceros_story/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'vm_ceros_story/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'vm_ceros_story/([^/]+)/embed/?$' => 'index.php?vm_ceros_story=$matches[1]&embed=true',
'vm_ceros_story/([^/]+)/trackback/?$' => 'index.php?vm_ceros_story=$matches[1]&tb=1',
'vm_ceros_story/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?vm_ceros_story=$matches[1]&paged=$matches[2]',
'vm_ceros_story/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?vm_ceros_story=$matches[1]&cpage=$matches[2]',
'vm_ceros_story/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?vm_ceros_story=$matches[1]&page=$matches[2]',
'vm_ceros_story/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'vm_ceros_story/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'vm_ceros_story/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_ceros_story/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_ceros_story/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'vm_ceros_story/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'vm_link_post/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'vm_link_post/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'vm_link_post/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_link_post/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_link_post/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'vm_link_post/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'vm_link_post/([^/]+)/embed/?$' => 'index.php?vm_link_post=$matches[1]&embed=true',
'vm_link_post/([^/]+)/trackback/?$' => 'index.php?vm_link_post=$matches[1]&tb=1',
'vm_link_post/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?vm_link_post=$matches[1]&paged=$matches[2]',
'vm_link_post/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?vm_link_post=$matches[1]&cpage=$matches[2]',
'vm_link_post/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?vm_link_post=$matches[1]&page=$matches[2]',
'vm_link_post/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'vm_link_post/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'vm_link_post/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_link_post/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'vm_link_post/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'vm_link_post/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'ep-synonym/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'ep-synonym/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'ep-synonym/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'ep-synonym/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'ep-synonym/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'ep-synonym/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'ep-synonym/([^/]+)/embed/?$' => 'index.php?ep-synonym=$matches[1]&embed=true',
'ep-synonym/([^/]+)/trackback/?$' => 'index.php?ep-synonym=$matches[1]&tb=1',
'ep-synonym/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?ep-synonym=$matches[1]&paged=$matches[2]',
'ep-synonym/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?ep-synonym=$matches[1]&cpage=$matches[2]',
'ep-synonym/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?ep-synonym=$matches[1]&page=$matches[2]',
'ep-synonym/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'ep-synonym/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'ep-synonym/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'ep-synonym/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'ep-synonym/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'ep-synonym/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'ep-pointer/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'ep-pointer/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'ep-pointer/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'ep-pointer/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'ep-pointer/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'ep-pointer/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'ep-pointer/([^/]+)/embed/?$' => 'index.php?ep-pointer=$matches[1]&embed=true',
'ep-pointer/([^/]+)/trackback/?$' => 'index.php?ep-pointer=$matches[1]&tb=1',
'ep-pointer/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?ep-pointer=$matches[1]&paged=$matches[2]',
'ep-pointer/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?ep-pointer=$matches[1]&cpage=$matches[2]',
'ep-pointer/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?ep-pointer=$matches[1]&page=$matches[2]',
'ep-pointer/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'ep-pointer/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'ep-pointer/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'ep-pointer/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'ep-pointer/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'ep-pointer/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'authorship/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?authorship=$matches[1]&feed=$matches[2]',
'authorship/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?authorship=$matches[1]&feed=$matches[2]',
'authorship/([^/]+)/embed/?$' => 'index.php?authorship=$matches[1]&embed=true',
'authorship/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?authorship=$matches[1]&paged=$matches[2]',
'authorship/([^/]+)/?$' => 'index.php?authorship=$matches[1]',
'robots\\.txt$' => 'index.php?robots=1',
'favicon\\.ico$' => 'index.php?favicon=1',
'.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\\.php$' => 'index.php?feed=old',
'.*wp-app\\.php(/.*)?$' => 'index.php?error=403',
'.*wp-register.php$' => 'index.php?register=true',
'embed/?$' => 'index.php?&embed=true',
'page/?([0-9]{1,})/?$' => 'index.php?&paged=$matches[1]',
'comment-page-([0-9]{1,})/?$' => 'index.php?&page_id=1681&cpage=$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/embed/?$' => 'index.php?&embed=true',
'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/(.+)/embed/?$' => 'index.php?s=$matches[1]&embed=true',
'search/(.+)/page/?([0-9]{1,})/?$' => 'index.php?s=$matches[1]&paged=$matches[2]',
'search/(.+)/?$' => 'index.php?s=$matches[1]',
'author/([^/]+)/?$' => 'index.php?author_name=$matches[1]',
'date/([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]',
'date/([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]',
'date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/embed/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&embed=true',
'date/([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]',
'date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]',
'date/([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]',
'date/([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]',
'date/([0-9]{4})/([0-9]{1,2})/embed/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&embed=true',
'date/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]',
'date/([0-9]{4})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]',
'date/([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&feed=$matches[2]',
'date/([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&feed=$matches[2]',
'date/([0-9]{4})/embed/?$' => 'index.php?year=$matches[1]&embed=true',
'date/([0-9]{4})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&paged=$matches[2]',
'date/([0-9]{4})/?$' => 'index.php?year=$matches[1]',
'[0-9]+/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'[0-9]+/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'[0-9]+/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]+/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]+/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'[0-9]+/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'([0-9]+)/([^/]+)/embed/?$' => 'index.php?p=$matches[1]&name=$matches[2]&embed=true',
'([0-9]+)/([^/]+)/trackback/?$' => 'index.php?p=$matches[1]&name=$matches[2]&tb=1',
'([0-9]+)/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?p=$matches[1]&name=$matches[2]&feed=$matches[3]',
'([0-9]+)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?p=$matches[1]&name=$matches[2]&feed=$matches[3]',
'([0-9]+)/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?p=$matches[1]&name=$matches[2]&paged=$matches[3]',
'([0-9]+)/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?p=$matches[1]&name=$matches[2]&cpage=$matches[3]',
'([0-9]+)/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?p=$matches[1]&name=$matches[2]&page=$matches[3]',
'[0-9]+/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'[0-9]+/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'[0-9]+/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]+/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]+/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'[0-9]+/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'[0-9]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'[0-9]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'[0-9]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'[0-9]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'([0-9]+)/embed/?$' => 'index.php?p=$matches[1]&embed=true',
'([0-9]+)/trackback/?$' => 'index.php?p=$matches[1]&tb=1',
'([0-9]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?p=$matches[1]&feed=$matches[2]',
'([0-9]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?p=$matches[1]&feed=$matches[2]',
'([0-9]+)/page/?([0-9]{1,})/?$' => 'index.php?p=$matches[1]&paged=$matches[2]',
'([0-9]+)/comment-page-([0-9]{1,})/?$' => 'index.php?p=$matches[1]&cpage=$matches[2]',
'([0-9]+)(?:/([0-9]+))?/?$' => 'index.php?p=$matches[1]&page=$matches[2]',
'[0-9]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
'[0-9]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
'[0-9]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
'[0-9]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
'[0-9]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'.?.+?/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]',
'.?.+?/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
'archives/(.+?)/[0-9]{4}/[0-9]{1,2}/?$' => 'index.php?category_name=$matches[1]',
'(.+?)/archives/([0-9]+)/?$' => 'index.php?category_name=$matches[1]&paged=$matches[2]',
'(.+?)/archives/?$' => 'index.php?category_name=$matches[1]',
'(.+?)/?$' => 'index.php?category_name=$matches[1]',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment