Thank you so much. This explanation really helps. Sorry for the nearly duplicate post. This one came through the mailing list delayed before I discovered this forum. Thanks again!by mpratt - Nginx Mailing List - English
Thank you for this explanation!by mpratt - Nginx Mailing List - English
For some reason, I am unable to take a URI like example.com/manufacturers/metlox/0?page=13 and change it to example.com/manufacturers/m It seems like the curly braces aren't working. I've tried the following without results: location ~* /manufacturers/ { rewrite "^/manufacturers/(.{1})/(.*)$" /manufacturer/directory/$1 redirect; } location ~* /manufacturers/ {by mpratt - Nginx Mailing List - English
Thanks for your reply. I had previously read that section and enclosed them in quotes and it didn't work: for example: > location ~* /manufacturers/ { > rewrite "^/manufacturers/(.{1})/(.*)$" /manufacturer/directory/$1 redirect; > } doesn't work. That;'s why I was so stumped. Thought I had done everything according to that section...by mpratt - Nginx Mailing List - English
Brilliant! It works perfectly. Do you have any idea why the curly braces didn't work and also where I can learn when to use a location in a location? Thank you so much!by mpratt - Nginx Mailing List - English
Hello, I am new to this forum. Glad it exists. Thanks for that. I have a production website that uses nginx 0.8.53 reverse proxy in front of apache. I actually had little problem setting that up, but this simple regex is giving me a headache. For some reason, I am unable to take a URI like example.com/manufacturers/metlox/0?page=13 and change it to example.com/manufacturers/m It seems likeby mpratt - Nginx Mailing List - English