Comment on Help Google just nerfed us out of the blueparentComments−epoxyhockey14ySince 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;−k33l0r14yThat's actually more complicated than it needs to be, see http://wiki.nginx.org/Pitfalls#Taxing_RewritesBad: rewrite ^/(.*)$ http://domain.com/$1 permanent; Good: rewrite ^ http://domain.com$request_uri? permanent; Better: return 301 http://domain.com$request_uri;−epoxyhockey14yAwesome - thanks!−TomAnthony14yNice tip. Perhaps with https instead of http in the redirect URL, though? :)−epoxyhockey14yTrue! It does look like Google will accept https as a canonical homepage link. They do it for Twitter.
Comments
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):
That's actually more complicated than it needs to be, see http://wiki.nginx.org/Pitfalls#Taxing_Rewrites
Bad:
Good: Better:Awesome - thanks!
Nice tip. Perhaps with https instead of http in the redirect URL, though? :)
True! It does look like Google will accept https as a canonical homepage link. They do it for Twitter.