Fix a few redirects regarding URL rewriting and/or preserving parameters.