Create a Redirect to your Google+ Profile

April 2, 2009: RIP Google+. :(

It is pretty simple to setup your domain to redirect to your Google+ profile. For example, I have https://techish.net/+ which redirects to my Google+ profile. This is handy instead of having to link to your Google+ profile manually or using a third-party service. Keeps everything in your control. =)

Apache

If you are using Apache, modify your .htaccess file and include the following lines.

<IfModule mod_rewrite.c>
RewriteEngine On
Redirect /+ https://plus.google.com/your_google_plus_profile_id/
</IfModule>

Nginx

If you are using Nginx, modify your nginx.conf file and put the following line within your location {} stanza.

rewrite ^/+ https://plus.google.com/your_google_plus_profile_id/ permanent;
#Apache #NGINX