http://bugs.winehq.org/show_bug.cgi?id=29193
--- Comment #8 from Dan Kegel dank@kegel.com 2011-11-28 23:57:28 CST --- Right, then, how about a little apache module? It's wafer-thin :-)
static int bugredir_handler(request_rec* r) { int bug; if (!r->handler || strcmp(r->handler, "bugredir")) return DECLINED;
if (r->method_number != M_GET) return HTTP_METHOD_NOT_ALLOWED;
if (strncmp(r->uri, "/bugs/", 6)) return DECLINED; bug = atoi(&r->uri[6]); if (bug > 0 && bug < (1<<20)) { char newuri[256]; sprintf(newuri, "/show_bug.cgi?id=%d", bug); ap_internal_redirect(newuri, r); } return DECLINED; }