Hello . there are expressions
RewriteRule ^alladv/q-(.*)/?$ index.php?m=doska&k=all_advert&q=$1 [QSA,L] RewriteRule ^alladv/q-(.*)/page([0-9]+)\.html$ index.php?m=doska&k=all_advert&q=$1&page_alladvert=$2 [QSA,L] Tell me why the request for site.ru / alladv / q-text / page2.html is perceived by the first expression, not the second? If you swap, everything works. Can I do something different in order not to change the order?