Hello. Please tell me how you can configure the rule in .htaccess

My task is to redirect from this type of links.

myshop / www / category / 3 / on

myshop / www /? controller = category & id = 3

I try to write in the rules

Options +FollowSymLinks Options -Indexes DirectoryIndex index.php RewriteEngine On RewriteBase / 

RewriteRule ^ ([az] +) / ([az] +) / ([0-9] +) / $ /? Controller = $ 2 & id = $ 3 &% {QUERY_STRING} [NS, L]

And does not work ((Error 404

    1 answer 1

    After your code in question

     RewriteRule ^myshop/www/category/3/$ myshop/www/?controller=category&id=3 [L]