I have an image that is accessible with the following URL:
https://localhost/hta/-7524-34-B.webp
I need to be able to access the same image with a URL like the following and remove the <something> part:
https://localhost/hta/<something>-7524-34-B.webp
How can I do this with .htaccess?
UPDATE:
I added the following .htaccess:
RewriteEngine On
RewriteRule ^.*?(?=&). /hta/$1 [NC,L]
When I write the following URL it's not opening the image. Only listing the hta directory.
http://localhost/hta/something-else&-7524-34-B.webp