Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
Имелась в виду обычная строка вроде uslugi-moyka-or-polirovka.
Т.е. сначала пробуем разобрать строку как диапазон и в случае неудачи разбираем как обычную остроку.
/firms/all/avtoservis/tokarnye-raboty/protochka/f_type-avtoservis/f_autobrands-vaz-or-bmw/f_salepaint-1/page-2.html
/firms/all/avtoservis/tokarnye-raboty/f_type-avtoservis/f_autobrands-vaz-or-bmw/f_salepaint-1/page-2.html
/firms/all/avtoservis/f_type-avtoservis/f_autobrands-vaz-or-bmw/f_salepaint-1/page-2.html
/firms/all/f_type-avtoservis/f_autobrands-vaz-or-bmw/f_salepaint-1/page-2.html
/firms/all/f_type-avtoservis/f_autobrands-vaz-or-bmw/f_salepaint-1/
/firms/all/avtoservis/page-4.html
/firms/
RewriteRule ^firms/([^/]+)/([^/]*)/([^/]*)/([^/]*)/((f_[a-z0-9-_]/)*)$ index.php?do=firms&areaname=$1&typef=$2&catname=$4¶m=$5 [L]
Array
(
[do] => firms
[areaname] => all/avtoservis/tokarnye-raboty/protochka/f_type-avtoservis/f_autobrands-vaz-or-bmw
[typef] => f_salepaint-1
[catname] => f_price-to-2700
)
RewriteRule ^firms/(.+)/(.+)/(.*)/(.*)/(.*)/$ index.php?do=firms&areaname=$1&typef=$2&catname=$5 [L]
RewriteRule ^firms/(.+)/(.+)/(.*)/(.*)/(.*)/page-([0-9]).html$ index.php?do=firms&areaname=$1&catname=$5&page=$6 [L]
RewriteRule ^firms/(.+)/(.+)/(.*)/(.*)/$ index.php?do=firms&areaname=$1&typef=$2&catname=$3 [L]
RewriteRule ^firms/(.+)/(.+)/(.*)/(.*)/page-([0-9]).html$ index.php?do=firms&areaname=$1&typef=$2&catname=$4&page=$5 [L]
RewriteRule ^firms/(.+)/(.+)/(.*)/$ index.php?do=firms&areaname=$1&typef=$2&catname=$4 [L]
RewriteRule ^firms/(.+)/(.+)/(.*)/page-([0-9]).html$ index.php?do=firms&areaname=$1&typef=$2&catname=$4&page=$4 [L]
RewriteRule ^firms/(.+)/(.*)/$ index.php?do=firms&areaname=$1&typef=$2 [L]
RewriteRule ^firms/(.+)/(.*)/page-([0-9]).html$ index.php?do=firms&areaname=$1&typef=$2&page=$3 [L]