How to redirect your site to your Google+ profile (or any other site for that matter)

Many have taken advantage of the sudden appearance of Google+ early to build up their social identities. The ever popular short web address services started to bud. Rather promptly, too. You may have seen people sharing their concise adresses like…

Gplus

Many have taken advantage of the sudden appearance of Google+ early to build up their social identities. The ever popular short web address services started to bud. Rather promptly, too. You may have seen people sharing their concise adresses like http://gplus.to/abc123 or http://gplus.am/123abc all over the Internet.

As I said, they are popular. Which means your precious nickname might have already been taken. If you have your own domain name, there’s a very simple way to redirect, or forward, your domain name to your Google+ profile. I have heard people dumping their blogs and using Google+ as their blogging platform, mainly because you reach out to people that already are following you.

So, the idea is simple. You want your friend to type your site’s URL, say http://example.com, in their web browsers and come automatically to your Google+ profile. Here are some easy steps to accomplish it.

  1. Create a new document in Notepad (or any other text editor).
  2. Save it under the filename “index.php” (use Save as… under File menu).
  3. Copy and paste the following bit of text into your index.php file:
    <?php
    $URL = "YOUR_GOOGLE+_PROFILE_URL";
    header ("Location: $URL");
    ?>
  4. Replace the phrase YOUR_GOOGLE+_PROFILE_URL with the address to your Google+ profile. (It is a long address. Mine, for example, looks like this: http://plus.google.com/110744082519634779396.)
  5. Save the file and upload it to the root directory of yoursite.com.

So, now you’re all set. Please, be aware though that this kind of a redirection only works if your web host supports PHP.

Tip: you can create a new directory in the root directory of http://example.com, say /gplus, and upload the index.php file there. That way http://example.com will be left as it is, but http://example.com/gplus will.

Another tip: I’ve seen it elsewhere and I think it looks neat. Instead of creating a directory called /gplus, name it simply “+”, so that the address http://example.com/+ would be redirected to your Google+ profile.

Leave a Reply

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