Help with some redirect

Hi i want make some rule from nginx to caddy.
location / { if ($request_uri ~ "^/app/"){ rewrite ^(.+)$ /index.php?action=$1 break; } }
If you can explain please how i can make this on caddy.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.