File_servers on different paths not working

My bad. I think these two redirect() calls need to use the “original URL” stored in the request context, instead of the current (rewritten) URL:

(Like this: originalReq, _ := req.Context().Value(OriginalRequestCtxKey).(http.Request))