Feature #237
closedRewrite conditions
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 Looks like it's back to Apache, for the time being...
-- pergesu
Updated by Anonymous over 19 years ago
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.
-- Moritz Augustin
Updated by Anonymous over 19 years ago
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.
-- Andreas Gohr
Updated by Anonymous over 19 years ago
I would also like to see this (what pergesu requested). With this feature I could almost totally replace Apache with Lighttpd.
-- BJ Clark
Updated by Anonymous about 19 years ago
I'd like to see this too, since this constraint keeps me from using lighty atm.
-- Albert Ramstedt
Updated by Anonymous almost 19 years ago
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.
-- cliff
Updated by jan about 18 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed in 1.4.12, use mod_magnet.
Updated by Anonymous about 18 years ago
- Status changed from Fixed to Need Feedback
- Resolution deleted (
fixed)
Updated by Anonymous over 17 years ago
I can't find any documentations about mod_magnet
-- masryalex
Updated by stbuehler over 16 years ago
- Status changed from Need Feedback to Fixed
- Resolution set to wontfix
Also available in: Atom