Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.