Write a redirect file.