```ruby
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')```

Revert "Added rule to redirect naked domain to www"
user
```ruby
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')```
assistant