cyclestreets/toolkit-chef — comment on commit 544223a209244638fd251acae9cb1d7e59b2212b
File:  line 0
By mvl22:

Don't forget to add www. versions of the non-.net names in the ServerAlias

Also needs to have redirection of .whatever/path/to/foo -> .net/path/to/foo

I usually use this macro:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^@hostname [NC]
RewriteRule ^/(.*) http://@hostname/$1 [L,R]

so in standard non- mod_macro Apache that would be:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.cyclescape.net [NC]
RewriteRule ^/(.*) http://www.cyclescape.net/$1 [L,R]