Reputation
Next tag badge:
130/100 score
9/20 answers
Badges
15 58 81
Impact
~719k people reached

May
7
awarded  Stellar Question
May
5
awarded  Nice Answer
Apr
30
awarded  Yearling
Mar
25
awarded  Nice Answer
Mar
18
revised DNS failing to propagate worldwide
edited tags
Mar
12
comment Nginx rewrite rule to replace querystring question mark with underscore
It does work, we are testing that the matched files are ending in .php which is part of the path. Though you're right, a file ending in php could still have no params.
Mar
12
comment Nginx rewrite rule to replace querystring question mark with underscore
ok, if we put it in location ~ \.php$ we can get try_files to work, but it does not work in location /
Mar
12
comment Nginx rewrite rule to replace querystring question mark with underscore
I like this, but we can't get the try_files bit to actually work, whereas the rewrite does work. (well, if you add a ? to the end of your rewrite there so the query params aren't added to it..)
Mar
12
comment Nginx rewrite rule to replace querystring question mark with underscore
we can do it without the if, when we specify a more strict .* clause in the first rewrite param. This is hugely helpful!
Mar
12
comment Nginx rewrite rule to replace querystring question mark with underscore
very interesting approach, would this cause a potential disk read and "file not found" on all potential URLs though?
Mar
12
revised Nginx rewrite rule to replace querystring question mark with underscore
edited title
Mar
12
comment Nginx rewrite rule to replace querystring question mark with underscore
even with the revised version, nginx fails to restart
Mar
12
comment Nginx rewrite rule to replace querystring question mark with underscore
nginx fails to restart with that rule set -- rewrite ^ $uri_$args? last;
Mar
10
revised Nginx rewrite rule to replace querystring question mark with underscore
added 225 characters in body
Mar
10
comment Nginx rewrite rule to replace querystring question mark with underscore
@tero the querystring URLs are, in practice, always in the same order. So this is a non issue.
Dec
2
awarded  Caucus
Dec
2
awarded  Constituent
Nov
24
awarded  Necromancer
Sep
30
awarded  Explainer
Aug
11
awarded  Notable Question