Hello everyone, I am new to Nginx. Currently, there is a rewrite rule from apache that I want to convert to Nginx rewrite rule.
Here is the original rewrite rule:
RewriteEngine On
RewriteRule sig-(.*)-(.*).png$ sig.php?player_id=$1&background=$2 [L]
Previously I tried by convert to: Rewrite ^/ sig-(.*)-(.*).png$ [ADDRESS]/sig.php?player_id=$1&background=$2;
[ADDRESS] is the file path.
Of course the rule just redirect the address to the original address. But I really want to keep the cleaned address on the browser's address bar.
Hope you guys can help me.