Skip to content

Instantly share code, notes, and snippets.

@leemacaulay
Created July 17, 2011 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leemacaulay/1087712 to your computer and use it in GitHub Desktop.
Save leemacaulay/1087712 to your computer and use it in GitHub Desktop.
Google+ redirect using Sinatra
require 'sinatra'
get '/ ' do
redirect 'https://plus.google.com/[YOUR-GOOGLE-ID]/posts'
end
@leemacaulay
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment