Configure redirect in phpBB from dynamic page to static

Need to do a 301 redirect on a phpbb forum? What changes need to be made to the .htaccess file

Example: http://site_ru/forum/viewtopic.php?f=44&t=360$ you need to redirect http://site_ru/auto.html

Solution: we make the following entry in the .htaccess file located in the forum folder

RewriteCond %{QUERY_STRING} ^f=44&t=360$
RewriteRule ^(.*)$ /auto.html [L,R=301]

Forwarding must be enabled in the same place, if not, add an entry:

RewriteEngine on
RewriteBase /