Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm wondering since I found out that creating a CNAME and an MX record is not allowed.

I want to create a 301 redirect from example.com to www.example.com, and have email with @example.com addresses.

I'm using 1&1 as my registrar, btw.

share|improve this question
up vote 4 down vote accepted

To do 301 redirects, you'll need to have an A record that points to a valid web server. You can then instruct the web server to redirect people, eg. with Apache's .htaccess:

Redirect 301 / http://www.example.com

MX records can be created as usual.

share|improve this answer
I was also able to do this directly in 1&1 by choosing a "destination" for the domain. The tech support guy I talked to said that it does use a 301 redirect. – Senseful Jul 19 '10 at 19:18
Ah, yeah, I should've mentioned that most hosting companies have some kind of easy redirect setup. This is what it's doing under the covers. – user626 Jul 20 '10 at 15:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.