I am having an issue with Nginx Rewrites
Currently my rule is as seen below
rewrite ^/i/(.*?)$ /i/$1.php last;
Basically what I want to do is redirect all .png files to .php within the /i directory. However, it seems that the $ has to be at the end so that I can not do
rewrite ^/i/(.*?)$.png /i/$1.php last;
Does anyone have any solutions?
Thanks Ben