File: D:/bin/iirf/tests/routerequestsbyextension/IIRF.ini
# IsapiRewrite4.ini
#
# ini file for the ISAPI rewriter.
#
# This ini file routes requests to different subdirectories,
# depending only on the extension of the script they request.
#
# Thu, 26 Jun 2008 09:35
#
RewriteLogLevel 5
IterationLimit 5
# =======================================================
# PHP
#
# Breakdown of the regex:
# (?!phpdir) - request does not begin with phpdir
# ([A-Za-z0-9-/]+\.php) - any php script
# ((\?.*)|()) - with or without a query string
#
# replace it with /phpdir/script.php?querystring
#
RewriteRule ^/(?!phpdir)([A-Za-z0-9-/]+\.php)((\?.*)|())$ /phpdir/$1$2 [L]
# =======================================================
# JSP
# The JSP version of the above.
RewriteRule ^/(?!jspdir)([A-Za-z0-9-/]+\.jsp)((\?.*)|())$ /jspdir/$1$2 [L]