Как уменьшить количество правил перезаписи?

Я создаю надежную систему фильтрации для моего сайта WordPress, и я действительно хочу иметь довольно постоянные ссылки для результирующих URL-адресов. Но поскольку я предлагаю большое количество различных параметров фильтрации, различные правила, необходимые для перезаписи, выходят из-под контроля. Я в настоящее время работает в 80 правилах перезаписи, не зная, будет ли это плохо влиять на производительность моего сайта (хотя я предполагаю, что реальный ответ на этот вопрос «зависит»).

Проблема в том, что каждый раз, когда я добавляю новый выбор фильтра, он удваивает количество правил, если я не могу поймать его в регулярном выражении. Как я могу упростить правила перезаписи с этими требованиями?

  • 3 таксономии могут быть включены в любую комбинацию и любой порядок, но всегда должны появляться до того, как любой из нижеперечисленных упоминает дополнительные URL-сегменты. Также допускаются URL-адреса без какой-либо из этих таксономий. Таксономии – это genre , artist и встроенный tag . URL-сегменты выглядят так:
    /genre/neurofunk/tag/bassdrive-xposure-show/artist/ben-xo+dj-liquid/ ;
  • Чтобы показывать сообщения в определенном диапазоне дат, можно указать два сегмента URL, чтобы установить предложение WHERE диапазона дат, например /20120826/20140513/ ;
  • Заказ по встроенным столбцам и пользовательскому meta_value s возможен с помощью сегмента /by/ URL, за которым следует ключ. Чтобы иметь возможность различать встроенные и настраиваемые ключи, используется префикс подчеркивания: /by/comment_count/ vs. /by/_downloads/ ;
  • Поскольку порядок по умолчанию – DESC, я включаю /asc/ как сегмент URL, когда хочу сортировать этот путь;
  • Чтобы обеспечить рабочую разбивку на страницы, я дублировал каждое правило, чтобы включить /page/ segment.

Мои правила перезаписи

 function tjnz_rewrite( $wp_rewrite ) { $rules = array( // with daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9), // with daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9), // with daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&paged=' . $wp_rewrite->preg_index(9), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8), // no daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // no daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // no daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6), // with daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // with daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // with daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6), // no daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // no daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // no daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // with daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&paged=' . $wp_rewrite->preg_index(5), 'filter\/(genre|tag|artist)\/(.+)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4), // no daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // no daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // no daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/(genre|tag|artist)\/(.+)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2), // with daterange + 0 params + orderby meta 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // with daterange + 0 params + orderby native 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // with daterange + 0 params w/o orderby 'filter\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php', // no daterange + 0 params + orderby meta 'filter\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+?)\/asc\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+)\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1), // no daterange + 0 params + orderby native 'filter\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+?)\/asc\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+)\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1), // no daterange + 0 params w/o orderby 'filter\/page\/([0-9])\/?$' => 'index.php?paged=' . $wp_rewrite->preg_index(1), 'filter\/?$' => 'index.php' ); $wp_rewrite->rules = $rules + $wp_rewrite->rules; } по function tjnz_rewrite( $wp_rewrite ) { $rules = array( // with daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9), // with daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9), // with daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&paged=' . $wp_rewrite->preg_index(9), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8), // no daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // no daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // no daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6), // with daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // with daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // with daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6), // no daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // no daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // no daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // with daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&paged=' . $wp_rewrite->preg_index(5), 'filter\/(genre|tag|artist)\/(.+)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4), // no daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // no daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // no daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/(genre|tag|artist)\/(.+)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2), // with daterange + 0 params + orderby meta 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // with daterange + 0 params + orderby native 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // with daterange + 0 params w/o orderby 'filter\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php', // no daterange + 0 params + orderby meta 'filter\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+?)\/asc\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+)\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1), // no daterange + 0 params + orderby native 'filter\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+?)\/asc\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+)\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1), // no daterange + 0 params w/o orderby 'filter\/page\/([0-9])\/?$' => 'index.php?paged=' . $wp_rewrite->preg_index(1), 'filter\/?$' => 'index.php' ); $wp_rewrite->rules = $rules + $wp_rewrite->rules; } по function tjnz_rewrite( $wp_rewrite ) { $rules = array( // with daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9), // with daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9), // with daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&paged=' . $wp_rewrite->preg_index(9), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8), // no daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // no daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // no daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6), // with daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // with daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // with daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6), // no daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // no daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // no daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // with daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&paged=' . $wp_rewrite->preg_index(5), 'filter\/(genre|tag|artist)\/(.+)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4), // no daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // no daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // no daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/(genre|tag|artist)\/(.+)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2), // with daterange + 0 params + orderby meta 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // with daterange + 0 params + orderby native 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // with daterange + 0 params w/o orderby 'filter\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php', // no daterange + 0 params + orderby meta 'filter\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+?)\/asc\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+)\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1), // no daterange + 0 params + orderby native 'filter\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+?)\/asc\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+)\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1), // no daterange + 0 params w/o orderby 'filter\/page\/([0-9])\/?$' => 'index.php?paged=' . $wp_rewrite->preg_index(1), 'filter\/?$' => 'index.php' ); $wp_rewrite->rules = $rules + $wp_rewrite->rules; } по function tjnz_rewrite( $wp_rewrite ) { $rules = array( // with daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9), // with daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9), // with daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&paged=' . $wp_rewrite->preg_index(9), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8), // no daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // no daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // no daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6), // with daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // with daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // with daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6), // no daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // no daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // no daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // with daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&paged=' . $wp_rewrite->preg_index(5), 'filter\/(genre|tag|artist)\/(.+)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4), // no daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // no daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // no daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/(genre|tag|artist)\/(.+)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2), // with daterange + 0 params + orderby meta 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // with daterange + 0 params + orderby native 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // with daterange + 0 params w/o orderby 'filter\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php', // no daterange + 0 params + orderby meta 'filter\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+?)\/asc\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+)\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1), // no daterange + 0 params + orderby native 'filter\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+?)\/asc\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+)\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1), // no daterange + 0 params w/o orderby 'filter\/page\/([0-9])\/?$' => 'index.php?paged=' . $wp_rewrite->preg_index(1), 'filter\/?$' => 'index.php' ); $wp_rewrite->rules = $rules + $wp_rewrite->rules; } е function tjnz_rewrite( $wp_rewrite ) { $rules = array( // with daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&mixmeta=' . $wp_rewrite->preg_index(9), // with daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9) . '&paged=' . $wp_rewrite->preg_index(10), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&orderby=' . $wp_rewrite->preg_index(9), // with daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8) . '&paged=' . $wp_rewrite->preg_index(9), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&datelo=' . $wp_rewrite->preg_index(7) . '&datehi=' . $wp_rewrite->preg_index(8), // no daterange + 3 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // no daterange + 3 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // no daterange + 3 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&' . $wp_rewrite->preg_index(5) . '=' . $wp_rewrite->preg_index(6), // with daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&mixmeta=' . $wp_rewrite->preg_index(7), // with daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7) . '&paged=' . $wp_rewrite->preg_index(8), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&orderby=' . $wp_rewrite->preg_index(7), // with daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6) . '&paged=' . $wp_rewrite->preg_index(7), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&datelo=' . $wp_rewrite->preg_index(5) . '&datehi=' . $wp_rewrite->preg_index(6), // no daterange + 2 params + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // no daterange + 2 params + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // no daterange + 2 params w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/(genre|tag|artist)\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&' . $wp_rewrite->preg_index(3) . '=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&mixmeta=' . $wp_rewrite->preg_index(5), // with daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5) . '&paged=' . $wp_rewrite->preg_index(6), 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&orderby=' . $wp_rewrite->preg_index(5), // with daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4) . '&paged=' . $wp_rewrite->preg_index(5), 'filter\/(genre|tag|artist)\/(.+)\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&datelo=' . $wp_rewrite->preg_index(3) . '&datehi=' . $wp_rewrite->preg_index(4), // no daterange + 1 param + orderby meta 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(_.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // no daterange + 1 param + orderby native 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/asc\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/(genre|tag|artist)\/(.+?)\/by\/(.+?)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // no daterange + 1 param w/o orderby 'filter\/(genre|tag|artist)\/(.+?)\/page\/([0-9])\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/(genre|tag|artist)\/(.+)\/?$' => 'index.php?' . $wp_rewrite->preg_index(1) . '=' . $wp_rewrite->preg_index(2), // with daterange + 0 params + orderby meta 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(_.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&mixmeta=' . $wp_rewrite->preg_index(3), // with daterange + 0 params + orderby native 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/asc\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&order=asc', 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3) . '&paged=' . $wp_rewrite->preg_index(4), 'filter\/([0-9]{8})\/([0-9]{8})\/by\/(.+)\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&orderby=' . $wp_rewrite->preg_index(3), // with daterange + 0 params w/o orderby 'filter\/([0-9]{8})\/([0-9]{8})\/page\/([0-9])\/?$' => 'index.php?datelo=' . $wp_rewrite->preg_index(1) . '&datehi=' . $wp_rewrite->preg_index(2) . '&paged=' . $wp_rewrite->preg_index(3), 'filter\/([0-9]{8})\/([0-9]{8})\/?$' => 'index.php', // no daterange + 0 params + orderby meta 'filter\/by\/(_.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+?)\/asc\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(_.+?)\/page\/([0-9])\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(_.+)\/?$' => 'index.php?mixmeta=' . $wp_rewrite->preg_index(1), // no daterange + 0 params + orderby native 'filter\/by\/(.+?)\/asc\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+?)\/asc\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&order=asc', 'filter\/by\/(.+?)\/page\/([0-9])\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1) . '&paged=' . $wp_rewrite->preg_index(2), 'filter\/by\/(.+)\/?$' => 'index.php?orderby=' . $wp_rewrite->preg_index(1), // no daterange + 0 params w/o orderby 'filter\/page\/([0-9])\/?$' => 'index.php?paged=' . $wp_rewrite->preg_index(1), 'filter\/?$' => 'index.php' ); $wp_rewrite->rules = $rules + $wp_rewrite->rules; } 

Solutions Collecting From Web of "Как уменьшить количество правил перезаписи?"

Я бы сказал, что это микро-оптимизация, и ваши усилия будут лучше потрачены в другом месте – дополнительные 80 правил – это мигание во время выполнения WordPress (они всего лишь цикл foreach с preg_match ).

Вам гораздо лучше убедиться в том, что любые настраиваемые таблицы базы данных разработаны эффективно, ваши запросы эффективны и что вы используете кэширование везде, где можете.

Обновление: начните с углубленного изучения системы кеша WordPress . Эта серия по кэшированию на уровне страницы также стоит прочитать.