RewriteEngine On RewriteRule ^(lib/images/image_exists.png)$ convert_webp.php?file=$1
# this not works, printing original image https://example.com/lib/images/image_exists.png # this is works, showing PHP script output https://example.com/lib/images/image_not_exists.png
I tested on localhost(xampp) and another servers, and it’s works. But when I test on HestiaCP, it’s not works. What is problem? I think problem is NGINX proxy but I don’t know how it’s working. Can someone say a solution?