Ticket #237 (reopened enhancement)

Opened 3 years ago

Last modified 1 year ago

Rewrite conditions

Reported by: pergesu Assigned to: jan
Priority: normal Milestone:
Component: mod_rewrite Version:
Severity: normal Keywords:
Cc: Blocking:
Need Feedback:

Description

I'd love to see support for rewrite conditions (If this file doesn't exist, then perform this rewrite, etc), similar to apache's "RewriteCond?":http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteCond Looks like it's back to Apache, for the time being...

Attachments

Change History

08/29/2005 05:31:53 AM changed by Moritz Augustin

To have a real alternative (and compatibility) to apache I think lighttpd should support exact mod_rewrites' syntax or (worse) should have a converter. Many big scripts use mod_rewrite by default, therefore lighttpd wouldn't support all features.

09/10/2005 11:37:30 PM changed by Andreas Gohr

I second this wish. I'm currently evaluating if I can replace Apache by lighty - so far I'm very impressed, but the current missing thing is conditional rewrites.

09/21/2005 03:50:21 PM changed by BJ Clark

I would also like to see this (what pergesu requested). With this feature I could almost totally replace Apache with Lighttpd.

11/16/2005 02:04:50 PM changed by Albert Ramstedt

I'd like to see this too, since this constraint keeps me from using lighty atm.

12/25/2005 01:10:43 AM changed by cliff@develix.com

Although I agree it would be nice to have something that accomplishes the same thing as RewriteCond? (although not *exactly* like Apache's mod_rewrite, which while really useful is also really, really ugly).

However, that being said, I don't see this as a show-stopper. The reason is that it's quite possible to write a 404.cgi that does this for you. Not as efficient as having the web server do it perhaps, but really, the application should be handling this IMO and a CGI-based solution seems a reasonable stop-gap.

Here's my $0.02: rewrite rules should be kept as simple and few as possible as they are nightmarish to maintain, non-portable (as you've discovered), and *most important of all*, they move application logic outside the application into a config file which is just plain bad style. Granted, many apps are written this way, but that's the application author's problem, not the web server's.

(follow-up: ↓ 7 ) 09/24/2006 01:43:10 PM changed by jan

  • status changed from new to closed.
  • resolution set to fixed.

fixed in 1.4.12, use mod_magnet.

(in reply to: ↑ 6 ) 10/21/2006 09:51:05 PM changed by anonymous

  • status changed from closed to reopened.
  • resolution deleted.

Replying to jan:

fixed in 1.4.12, use mod_magnet.

hm, apache mod rewrite combat would be nicer ;-)

05/14/2007 05:07:03 AM changed by masryalex@gmail.com

I can't find any documentations about mod_magnet


Add/Change #237 (Rewrite conditions)




Change Properties