Sha256: c202ecc21634016be036d047d36ade4d963cc9b0ee91bfb487bc273d6b16f0ec

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

= rack-rewrite

A rack middleware for enforcing rewrite rules. In many cases you can get away with rack-rewrite
instead of writing Apache mod_rewrite rules.

== Usage in a rails app
  config.gem 'rack-rewrite', '~> 0.1.0'
  config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do
    rewrite '/wiki/John_Trupiano', '/john'
    r301 '/wiki/Yair_Flicker', '/yair'
    r302 '/wiki/Greg_Jastrab', '/greg'
  end

== Notes

* Haven't tested full paths for :rewrite, :r301, :r302
* No regular expression support yet

== Copyright

Copyright (c) 2009 John Trupiano. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-rewrite-0.1.0 README.rdoc