I have a rule in the .htaccess file

RewriteRule ^(.*)?$ material/ru.php [QSA,NC,L] 

It sends all non-existent pages of the site.ru/123456 type to the address material / ru.php

How to make the same rule but for non-existing pages with addresses:

site.ru/view/123456 so that these addresses are processed by a rule different from

  RewriteRule ^(.*)?$ material/ru.php [QSA,NC,L] 

and opened the following address material / en .php

Thank!

    0