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?

  • Is order so fundamentally? - Yuri
  • No, it doesn’t matter, but I would just like to know if there is an alternative besides order - Sarkis Allahverdian
  • Well, in any case, I see one solution - to rearrange places. Maybe someone could understand it better - Yuri
  • Recently, many questions labeled with CNC. Is this about anything at all? I know CNC machines, but PHP CNC is what? - rjhdby
  • @rjhdby man like url if not mistaken. - Yura Petrov

0