Tagged with htaccess

Redirect non-www requests to www urls

In one of my recent projects, i’ve faced a situation where i need to redirect non-www traffic to a canonical www. For someone who don’t understand the issue, i want my users who type http://foo.bar in their browsers to be redirected to http://www.foo.bar. The tried and tested way to achieve this redirect is through server configuration. I … Continue reading