1 liner in Rack to redirect from one domain name to another

Language: Ruby

# config.ru at the old domain
run lambda {|env| [301, {'Content-Type'=>'text/html', 'Location'=>"http://newdomain.com#{env['PATH_INFO']}"}, ['Redirecting...']]}
Reveal More
Added 4 months ago by Costco_normal trevorturk