|
|
|
|
|
by ez77
5548 days ago
|
|
A bit off topic, please consider the following example in [1]: if ($args ~ post=140){
rewrite ^ http://example.com/ permanent;
}
Why is "^" used as a regex wildcard instead of ".*"? Thanks![1] http://wiki.nginx.org/HttpRewriteModule |
|
It might also be more performant because the regex engine doesn't consume the whole string before finding a match..