static directory redirect should not discard query string part of the URL