Re: Small addition to Apache 1.3.x

From: Date: Thu, 07 Oct 2004 02:02:33 +0000
Subject: Re: Small addition to Apache 1.3.x
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-13211@lists.php.net to get a copy of this message
Have you ever used mod_rewrite for anything complex? - it's a complete nightmare (unpredictable, almost impossible to debug..., uncomprehensible syntax.....) This looks like quite usefull. - a little cleaner than 404 redirecting, which is the other way it's done at present.. Regards Alan Jason Garber wrote:
Hello Manuel, After reading your motivations, it seems to me that you need mod rewrite. from: http://httpd.apache.org/docs/mod/mod_rewrite.html "Welcome to mod_rewrite, the Swiss Army Knife of URL manipulation! This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, for instance server variables, environment variables, HTTP headers, time stamps and even external database lookups in various formats can be used to achieve a really granular URL matching. This module operates on the full URLs (including the path-info part) both in per-server context (httpd.conf) and per-directory context (.htaccess) and can even generate query-string parts on result. The rewritten result can lead to internal sub-processing, external request redirection or even to an internal proxy throughput." Check it out.


« previous php.internals (#13211) next »