<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Thanks Maxim,<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
I just understood my mistake: I was confusing (once again, I think) named captures and subpatterns...<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">What I wanted to use was the OR logic capability of captures while actually not capturing them...<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">The starting question mark of both syntax confused me...<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">If anyone is intereted in it, the intended (and working) syntax is:<br>location ~* "^/([[:alpha:]]{1,8}(?:-[[:alpha:]]{1,8})?)(/.*[^/])?/?$" {<br>
<div class="gmail_default"> try_files $uri $uri/ $2/?lang=$1&$args;<br>}<br><br></div><div class="gmail_default">Working on multi-language URIs on webserver-side... ;o)<br></div></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
</div><div class="gmail_extra"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div></div>