doing away with www.
“www.” for the most part is a pointless idea. We all know what a web page is. The “www.” prefix is outdated although necessary evil. I guess the same could be said of http:// and https:// for web requests …we all know what it means.
Here’s a quick snippet of my apache config to push all traffic from www.loathso.me to loathso.me
<VirtualHost *>
ServerName www.loathso.me
ServerAlias loathso.me
DocumentRoot /var/www/loathsome/current/public/
RackEnv production
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.loathso\.me
RewriteRule ^/(.*)$ http://loathso.me/$1 [R=permanent,L]
CustomLog /var/log/apache2/loathsome-access.log common
ErrorLog /var/log/apache2/loathsome-error.log
</VirtualHost>