Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Is it a good idea to redirect http://www.example.com to http://example.com or keep both ?
It's a good idea to redirect example.com to www.example.com. Because you can't use a CNAME for example.com's DNS record, which greatly reduces your options for things like load balancing and resilience.