everything...
I am trying to do something in nginx to redirect all file calls to
/images/
to enter the:
/assets/images/
can someone help me with rewrite rule? giving 301 permanent status?
Here's the preferred way to do this with newer versions of Nginx:
location ~ ^/images/(.*) { return 301 /assets/images/$1; }
See https://www.nginx.com/blog/creating-nginx-rewrite-rules/ for more details.
Add below configuration to your nginx.conf
rewrite ^/(images.*) /assets/$1 permanent;