Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to configure a redirection from example.com to www.example.com (since CNAME is not allowed for top-level domains). How can I do this in AWS Route 53 (or any other DNS provider, in general)?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

I'm using wwwizer.com for bare domain forwarding

share|improve this answer

You can't.

Think about it, I'll try to explain with an example. This is what you want:

example.com                   CNAME                 www
www                           A                     1.2.3.4

All traffic going to example.com would be redirected to www.example.com. Mail and other subdomains would be impacted.

To solve your problem, what you could do is the following:

example.com                   A                     1.2.3.4
www                           A                     1.2.3.4

Then you could set up a vhost in apache (if you are using that. I'm sure most software has a capability like this) that redirects all traffic that hits on example.com to www.example.com.

share|improve this answer

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.