https redirect hell (adding www)

Did you check your ISP’s setting? E.g. in Dreamhost’s control panel you have these 3 options:

Do you want the www in your URL?

  • Leave it alone: Both http://www.domain.com/ and http://domain.com/ will work.
  • Add WWW: Make http://domain.com/ redirect to http://www.domain.com/
  • Remove WWW: Make http://www.domain.com/ redirect to http://domain.com/