Advertisement
Guest User

Rewrite rules

a guest
Oct 13th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 12.37 KB | None | 0 0
  1. array (
  2.   'category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&feed=$matches[2]',
  3.   'category/(.+?)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&feed=$matches[2]',
  4.   'category/(.+?)/page/?([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&paged=$matches[2]',
  5.   'category/(.+?)/?$' => 'index.php?category_name=$matches[1]',
  6.   'tag/(.+)$' => 'index.php?su_term_redirect=$matches[1]',
  7.   'type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_format=$matches[1]&feed=$matches[2]',
  8.   'type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_format=$matches[1]&feed=$matches[2]',
  9.   'type/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?post_format=$matches[1]&paged=$matches[2]',
  10.   'type/([^/]+)/?$' => 'index.php?post_format=$matches[1]',
  11.   'movie/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  12.   'movie/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  13.   'movie/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  14.   'movie/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  15.   'movie/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  16.   'movie/([^/]+)/trackback/?$' => 'index.php?post_type=movie&name=$matches[1]&tb=1',
  17.   'movie/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=movie&name=$matches[1]&feed=$matches[2]',
  18.   'movie/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=movie&name=$matches[1]&feed=$matches[2]',
  19.   'movie/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?post_type=movie&name=$matches[1]&paged=$matches[2]',
  20.   'movie/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?post_type=movie&name=$matches[1]&cpage=$matches[2]',
  21.   'movie/([^/]+)(/[0-9]+)?/?$' => 'index.php?post_type=movie&name=$matches[1]&page=$matches[2]',
  22.   'movie/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  23.   'movie/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  24.   'movie/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  25.   'movie/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  26.   'movie/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  27.   'person/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  28.   'person/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  29.   'person/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  30.   'person/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  31.   'person/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  32.   'person/([^/]+)/trackback/?$' => 'index.php?post_type=person&name=$matches[1]&tb=1',
  33.   'person/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=person&name=$matches[1]&feed=$matches[2]',
  34.   'person/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=person&name=$matches[1]&feed=$matches[2]',
  35.   'person/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?post_type=person&name=$matches[1]&paged=$matches[2]',
  36.   'person/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?post_type=person&name=$matches[1]&cpage=$matches[2]',
  37.   'person/([^/]+)(/[0-9]+)?/?$' => 'index.php?post_type=person&name=$matches[1]&page=$matches[2]',
  38.   'person/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  39.   'person/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  40.   'person/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  41.   'person/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  42.   'person/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  43.   'studio/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  44.   'studio/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  45.   'studio/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  46.   'studio/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  47.   'studio/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  48.   'studio/([^/]+)/trackback/?$' => 'index.php?post_type=studio&name=$matches[1]&tb=1',
  49.   'studio/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=studio&name=$matches[1]&feed=$matches[2]',
  50.   'studio/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=studio&name=$matches[1]&feed=$matches[2]',
  51.   'studio/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?post_type=studio&name=$matches[1]&paged=$matches[2]',
  52.   'studio/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?post_type=studio&name=$matches[1]&cpage=$matches[2]',
  53.   'studio/([^/]+)(/[0-9]+)?/?$' => 'index.php?post_type=studio&name=$matches[1]&page=$matches[2]',
  54.   'studio/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  55.   'studio/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  56.   'studio/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  57.   'studio/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  58.   'studio/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  59.   'scene/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  60.   'scene/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  61.   'scene/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  62.   'scene/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  63.   'scene/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  64.   'scene/([^/]+)/trackback/?$' => 'index.php?post_type=scene&name=$matches[1]&tb=1',
  65.   'scene/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=scene&name=$matches[1]&feed=$matches[2]',
  66.   'scene/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=scene&name=$matches[1]&feed=$matches[2]',
  67.   'scene/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?post_type=scene&name=$matches[1]&paged=$matches[2]',
  68.   'scene/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?post_type=scene&name=$matches[1]&cpage=$matches[2]',
  69.   'scene/([^/]+)(/[0-9]+)?/?$' => 'index.php?post_type=scene&name=$matches[1]&page=$matches[2]',
  70.   'scene/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  71.   'scene/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  72.   'scene/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  73.   'scene/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  74.   'scene/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  75.   '.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\\.php$' => 'index.php?feed=old',
  76.   '.*wp-register.php$' => 'index.php?register=true',
  77.   'feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]',
  78.   '(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]',
  79.   'page/?([0-9]{1,})/?$' => 'index.php?&paged=$matches[1]',
  80.   'comments/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]&withcomments=1',
  81.   'comments/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]&withcomments=1',
  82.   'comments/page/?([0-9]{1,})/?$' => 'index.php?&paged=$matches[1]',
  83.   'search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?s=$matches[1]&feed=$matches[2]',
  84.   'search/(.+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?s=$matches[1]&feed=$matches[2]',
  85.   'search/(.+)/page/?([0-9]{1,})/?$' => 'index.php?s=$matches[1]&paged=$matches[2]',
  86.   'search/(.+)/?$' => 'index.php?s=$matches[1]',
  87.   'author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?author_name=$matches[1]&feed=$matches[2]',
  88.   'author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?author_name=$matches[1]&feed=$matches[2]',
  89.   'author/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?author_name=$matches[1]&paged=$matches[2]',
  90.   'author/([^/]+)/?$' => 'index.php?author_name=$matches[1]',
  91.   '([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]',
  92.   '([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]',
  93.   '([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]',
  94.   '([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]',
  95.   '([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]',
  96.   '([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]',
  97.   '([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]',
  98.   '([0-9]{4})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]',
  99.   '([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&feed=$matches[2]',
  100.   '([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&feed=$matches[2]',
  101.   '([0-9]{4})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&paged=$matches[2]',
  102.   '([0-9]{4})/?$' => 'index.php?year=$matches[1]',
  103.   '.?.+?/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  104.   '.?.+?/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  105.   '.?.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  106.   '.?.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  107.   '.?.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  108.   '(.?.+?)/trackback/?$' => 'index.php?pagename=$matches[1]&tb=1',
  109.   '(.?.+?)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?pagename=$matches[1]&feed=$matches[2]',
  110.   '(.?.+?)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?pagename=$matches[1]&feed=$matches[2]',
  111.   '(.?.+?)/page/?([0-9]{1,})/?$' => 'index.php?pagename=$matches[1]&paged=$matches[2]',
  112.   '(.?.+?)/comment-page-([0-9]{1,})/?$' => 'index.php?pagename=$matches[1]&cpage=$matches[2]',
  113.   '(.?.+?)(/[0-9]+)?/?$' => 'index.php?pagename=$matches[1]&page=$matches[2]',
  114.   '[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  115.   '[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  116.   '[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  117.   '[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  118.   '[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  119.   '([^/]+)/trackback/?$' => 'index.php?name=$matches[1]&tb=1',
  120.   '([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?name=$matches[1]&feed=$matches[2]',
  121.   '([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?name=$matches[1]&feed=$matches[2]',
  122.   '([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?name=$matches[1]&paged=$matches[2]',
  123.   '([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?name=$matches[1]&cpage=$matches[2]',
  124.   '([^/]+)(/[0-9]+)?/?$' => 'index.php?name=$matches[1]&page=$matches[2]',
  125.   '[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
  126.   '[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
  127.   '[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  128.   '[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
  129.   '[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
  130. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement