Skip to content

Instantly share code, notes, and snippets.

@zegomesjf
Created November 9, 2013 17:15
Show Gist options
  • Save zegomesjf/7387580 to your computer and use it in GitHub Desktop.
Save zegomesjf/7387580 to your computer and use it in GitHub Desktop.
# www.guepardolabs.com -> guepardolabs.com
# www.guepardolabs.com.br -> guepardolabs.com
# www.guepardolabs.net -> guepardolabs.com
# guepardolabs.com.br -> guepardolabs.com
# guepardolabs.net -> guepardolabs.com
require 'rack-rewrite'
use Rack::Rewrite do
r301 %r{.*}, 'http://guepardolabs.com$&', :if => Proc.new {|rack_env|
rack_env['SERVER_NAME'] != 'guepardolabs.com'
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment