I am trying to understand why does my website always get redirected to the naked domain version of it. For e.g.:
www.example.com gets redirected to example.com
I purchased my domain name from godaddy and am using github (scroll to custom domains) for hosting it. (sidenote: I don't quite understand the concept of CNAME and A-records)