Adding Google Plus Redirect to Your Nginx Powered Site

| Comments | featured, technical

A quick one, this morning I’ve added the plus url to my website, so now redirects to my Google+ profile.

This, it turns out, is really easy to implement if you run Nginx as the front to your website.

You simply need to update your server configuration to include the following snippet:

location ~ ^/?$ {
  rewrite ^ permanent;

This will ensure that your domain.tld/+ issues a redirect to your Google+ profile.

Hope this helps