mod_rewrite analogue [3.1.4]


For IIS web server there is no built in analogue to Apache module mod_rewrite, there are only modules by third parties.

But one can set up any arbitrary page
handler.html as handler of 404 page (we also recommend set it up as a handler for 403.14 and 405 errors).

Original uri accessible in
$request:uri.

Regretfully when IIS handles
POST requests which have no document name (…/), IIS does not pass POSTed body to CGI-scripts.
Possible walkaround:for such pages set this action:
<form action="form.html"…
and handle inevitable "
form.html file not found" error in @unhandled_exception and suppress writing it to error log.



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 23.12.2004