Since the OP is using nginx, here is how you properly do a 301 redirect straight from nginx.conf (in the 'server' section for meloncard.com):
rewrite ^/(.*)$ http://safeshepherd.com/$1 permanent;