Typically, this is better to configure this sort of redirect on your real servers, however you can utilize Header Modification to achieve the same result.