How to remove numerically (&id=)?

Hello, please tell me how to make CNC conditions to remove the link from &id=
I now open this: /news&id=35
If I remove the id in the url= , it is also correctly opens the page at the path /news&35
But it's wrong after all, so the question is how to do to open the page like this: /news/35
+ was a redirect from a page /news&id=35 id changes dynamically, depending on the news)

Please help to understand this situation) to be blown on this task.
April 3rd 20 at 18:41
1 answer
April 3rd 20 at 18:43
everything is just a bug in TK
do you think that RewriteRule can work c GET, and he, in turn, is not part of the url
as a result you need to select it in a different way ;)
RewriteCond %{QUERY_STRING} (^|&)id\=(.+)($|&)
RewriteRule ^index\.php$ /%1/? [L,R=301]


%2 - the second Grupa from RewriteCond

Find more questions by tags htaccessProcessing URL