Google Plus: Pretty URL on your own domain!

Google redirects http://google.com/+ to http://plus.google.com and it’s very simple to do this on your own domain too!

For Apache (with .htaccess):
Insert this line in your .htaccess file in the root of the domain (if you don’t see this file, just create one!)

Redirect /+ https://plus.google.com/108884222134944773728/post

# /+ is your base URL (yourdomain.com/+) you can use plus or anything to fit your need.

# https://plus.google.com/108884222134944773728/post is the URL it will redirect to, paste your long Google+ URL here or use gplus.to's URL.

For Nginx:
There is no .htaccess file on Nginx server, if you want to redirect to your own Google+ Profile URL, you have to have access to nginx domain config file. (In Ubuntu, it’s located at /etc/nginx/sites-enabled). In this file, find location / {} and paste this line between { and }.

rewrite ^/+ https://plus.google.com/100995349638807368851/posts;

Restart Nginx and have fun with new Google+ URL on your own domain🙂

Gửi phản hồi

Please log in using one of these methods to post your comment:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s