/upload/000/u1/7/1/1.jpg?moderation=on
/upload/001/u2/5/4/25.jpg
/upload/002/u88/2/2/34.jpg?moderation=on
/upload/system/no-avatar.jpg
location ~* ^.+.(jpg|jpeg|gif|png|svg|)$ {
if ($arg_moderation) {
rewrite /upload/system/no-avatar.jpg break;
}
}
location ~* \.(jpe?g|gif|png|svg)$ {
if ($arg_moderation = "on") {
rewrite ^ /upload/system/no-avatar.jpg break;
}
}