you need to teach a server to understand the address / catalog / dveri_mezhkomnatnye / mebel_massiv / granada / granada / type-bez_stekla / as / catalog / dveri_mezhkomnatnye / mebel_massiv / granada / granada /? type = bez_stekla

I write in htaccess:

RewriteEngine on ... RewriteRule ^catalog/(.*)/type-(.*)/$ /catalog/$1/?type=$2 [L,QSA] 
  • gives 404 if you add the key R, then normally redirect

I tried it like this:

 RewriteCond %{REQUEST_URI} ^/(.*)(?=type-)type-(.*)/ [NC] RewriteRule ^.*$ /%1?type=%2 [NE,L] 

The result is the same

    0