Today’s coderack.org middleware is Rack::ForceDomain. This middleware forces all requests to go to a single domain. This is useful to unite the “www.example.com” and “example.com” domains so they all end up at a single domain. The Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 …