Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
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.
Required, but never shown