how to redirect 404 to attachment.php?

I have a problem, I have many url attachments with / amp, example: siteweb.com/article-2019/image2/amp siteweb.com/article-2019/image3/amp siteweb.com/article-2019/image4/amp all these give me 404 error But the original url and where the images are are like this siteweb.com/article-2019/image2/ siteweb.com/article-2019/image3/ siteweb.com/article-2019/image4/ Any way to do it with htacces?

Details