www in htaccess

Many customers at some point request to force either the www or non-www version of their site to display in their visitor’s browser. For example always have www.example.com or simply example.com display in their visitor’s web browser. There is a common thought that forcing one format is better for search engine optimization.