require "rubygems"
require 'rack/contrib'
require 'rack-rewrite'
DOMAIN = 'www.ruby-pt.org'
 

use Rack::Static, 
  :urls => ["/css", "/img"],
  :root => "public"
use Rack::ETag
use Rack::Rewrite do
  rewrite '/', '/index.html'
  r301 %r{.*}, "http://#{DOMAIN}$&", :if => Proc.new {|rack_env|
    rack_env['SERVER_NAME'] != DOMAIN && ENV['RACK_ENV'] == "production"
  }
end
run Rack::Directory.new('public')
require "rubygems"
require 'rack/contrib'
require 'rack-rewrite'

use Rack::Static, 
  :urls => ["/css", "/img"],
  :root => "public"
use Rack::ETag
use Rack::Rewrite do
  rewrite '/', '/index.html'
end
run Rack::Directory.new('public')
Revert "Added rule to redirect naked domain to www"
Revert "Added rule to redirect naked domain to www"

This reverts commit ae00b3e3d40408cac71e3e0a13dcf717a2ef2345.
