What is better location regex or map regex?

B.R. reallfqq-nginx at yahoo.fr
Wed Apr 2 13:22:03 UTC 2014

I would use:
- rewrite directives only at server level, no need for location here
- a single regex with OR logic to match both the advancedsearch and the
profile URI since the rewriting grammar is the same
- a single regex for both 'index.php' rewritings, since the grammar of
category+page is the same as the grammar for page with an optionally added

To sum up: 2 rewrite directives at server level.
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140402/c6394f8c/attachment.html>

More information about the nginx mailing list