Created
July 17, 2011 15:48
-
-
Save leemacaulay/1087712 to your computer and use it in GitHub Desktop.
Google+ redirect using Sinatra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/ ' do | |
redirect 'https://plus.google.com/[YOUR-GOOGLE-ID]/posts' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After experimenting for hours, this was the best way I could find to do the your-domain.com/+ redirect for Google+ using Sinatra. I assume Sinatra parses the space as a plus sign as required by url standards.
It's probably really obvious now I come to think of it but it might help someone.