I'm trying to migrate rewrite rules from apache to nginx. Can anybody explain what
RewriteRule ^api/.$ - [L]
does?
I'm trying to migrate rewrite rules from apache to nginx. Can anybody explain what
RewriteRule ^api/.$ - [L]
does?
Your comment is correct.
Basically:
[L] means that this should be considered the Last rule for anything matching this condition.
- when used as a target means "do nothing" or "accept as is".
^api/.$ is your regex. ^ means the beginning, $ means the end, and . means "any single character".