[Israel.pm] (off-topic) Apache help

Shlomo Yona shlomo at cs.haifa.ac.il
Mon Dec 20 07:33:53 PST 2004

On Sun, 19 Dec 2004, Issac Goldstand wrote:

> mod_rewrite
> Something like the following should work (not tested, and knowing 
> mod_rewrite's peevishness ,it won't work without small tweaks):
> RewriteEngine On
> RewriteRule !^/website/(.*)\.html$ [C]
> RewriteRule ^(.*) $1/index.html [N]
> RewriteRule ^/website/(.*)$ /cgi-bin/mila.cgi.pl?f=$1 
> [L,T=application/x-httpd-cgi]
> See http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html or 
> http://httpd.apache.org/docs/mod/mod_rewrite.html
> See also http://httpd.apache.org/docs-2.0/misc/rewriteguide.html

This seems to work.

What are the capital letters in the square brackets?
I couldn't understand what they are for and what they do
from the documentation.

Shlomo Yona
shlomo at cs.haifa.ac.il

More information about the Perl mailing list