NGinx and yourdomain.com/+ => google+

A simple tip for make a redirection in your domain to your google plus profile.
In the nginx conf file for your domain only needs to add this lines:

if ($request_uri ~ ^/\+$){
  rewrite ^ http://profiles.google.com/yourprofileid  permanent;
}

And now, you can share a new url http://yourdomain.com/+ for google+.

In my case http://agustinvinao.com.ar/+

[update] this sentence must go after the server directive:

server_name agustinvinao.com.ar www.agustinvinao.com.ar;
if ($request_uri ~ ^/\+$){
  rewrite ^ http://profiles.google.com/agustinvinao  permanent;
}

Leave a Reply

Your email address will not be published. Required fields are marked *