jtrupiano / rack-rewrite

A web server agnostic rack middleware for defining and applying rewrite rules. In many cases you can get away with Rack::Rewrite instead of writing Apache mod_rewrite rules.

Home Page:http://github.com/jtrupiano/rack-rewrite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: specify HTTP method in rewrite rules

opened this issue · comments

Not sure of the syntax, but I use the feature with Apache often, selecting one rule for POST requests, another for GET.

Others have requested this feature as well. If anyone's willing to tackle the implementation I'd be happy to include it.

It looks like someone made a pull request that includes this feature, but it hasn't been responded to. Is this gem maintained anymore?

Not sure, but I still use it!

Well, I'm using @mikz's fork since it's more up to date anyway. Work great for my Rails 3.1 project, but I rely on his additions and can't use the original branch / current releases.

Good to know, thanks for the info. I am working on a couple Rails 3.1 apps too, but haven't gotten them fully integrated with Rack yet:

http://www.regdel.com/

There are some other rack-rewrite gems out there, but I like this one the best.

I'm glad that someone is using my fork.

Probably I'll have some time to maintain it for a while.

Sorry I've been MIA on this awhile. I'll pull from @mikz and do a new release today.

I've merged in everything from mikz/master and released 1.1.0.

Badass, glad to hear it! Thanks :)