Is it possible to mass redirect (301) for links in htaccess?

Hello
Prompt, please, the correct mass with redirect links like this:
www.site.ru/content/600-nazvanie-novosti.html

the links of this format:
www.site.ru/content.php?r=600-nazvanie-novosti
April 7th 20 at 10:48
1 answer
April 7th 20 at 10:50
Solution
RedirectMatch 301 ^/content/(.+)\.html$ /content.php?r=$1


Or
RewriteEngine On

RewriteRule ^content/(.+)\.html$ /content.php?r=$1 [R=301,L]
Thank you! And if this redirect is correct given the fact that the reference 600 is the ordinal ID of the article? ID dynamic, that is, each link its own ID. - Regan.Konopelski commented on April 7th 20 at 10:53
@Regan.Konopelski, the pattern (.+) matches any characters. - Merritt.Schroeder48 commented on April 7th 20 at 10:56

Find more questions by tags htaccessProcessing URL