httpd-wiki-changes mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Httpd Wiki] Update of "RewriteVirtualHandler" by EricCovener
Date Sun, 11 Jan 2009 18:25:35 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The following page has been changed by EricCovener:

The comment on the change is:
make it safe for per-dir, ^/?script.php is less confusing IMO than a condition

  For other handlers such as php scripts, use:
  RewriteEngine On
+ RewriteCond %{REQUEST_URI} !=/script.php
- RewriteRule !^/script.php /script.php
+ RewriteRule .* /script.php
  And for CGI scripts:
@@ -39, +40 @@

  RewriteEngine On
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d [OR]
+ RewriteCond %{REQUEST_URI} !=/script.php
- RewriteRule !^/script.php /script.php
+ RewriteRule .* /script.php
  If the existing files you wish to have handled by your script have a common set of file
extensions distinct from that of the hander, you can bypass {{{mod_rewrite}}} and use instead
{{{mod_actions}}}. Let's say you want all .html and .tpl files to be dealt with by your script:

View raw message