How to do a redirect in .htaccess URL c GET?

Please tell me how to do a 301 redirect with this URL (Joomla):

xxx-xx.com.ua/component/content/article?layout=edi...

on this URL:

https://xxx-xx.com.ua/posluhy-z-reyestratsiyi-tran...

A simple redirect in this case, as I understand it, does not pass.
Will correct this design:

RewriteCond %{QUERY_STRING} ^layout=edit&id=88$ [NC]
RewriteRule ^dir/index\.php$ https://xxx-xx.com.ua/posluhy-z-reyestratsiyi-tran... [R=301,L]

Thanks in advance!
March 19th 20 at 08:36
1 answer
March 19th 20 at 08:38

Find more questions by tags Processing URL