Overview:
Follow the steps below to redirect your site on 1and1.
Steps:
- Go to 1and1 and login
- In your control panel, click the Hosting tab at the top

- Find the website you want to add the redirect script to, then click Edit Website

- In the 1and1 website editor, look at the right sidebar and click Settings

- In the pop-up menu, click Edit Header.

- Paste the redirect code into the header box. Click Save. It's as easy as 1.2...5!

Other Resources:
You might be looking to setup your custom domain with 1and1, please click here to see instructions on how to set this up. Set up a CNAME record with 1and1