Fix server name to be dynamic in redirect.