From owner-freebsd-questions Mon Nov 17 13:12:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA15608 for questions-outgoing; Mon, 17 Nov 1997 13:12:51 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mail.boisfrancs.qc.ca (mail.boisfrancs.qc.ca [207.253.52.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA15598 for ; Mon, 17 Nov 1997 13:12:30 -0800 (PST) (envelope-from xenub@boisfrancs.qc.ca) Received: from liloo (wiz@ppp28.boisfrancs.qc.ca [207.253.52.49]) by mail.boisfrancs.qc.ca (8.8.5/8.8.5) with SMTP id QAA24250 for ; Mon, 17 Nov 1997 16:20:56 -0500 (EST) Message-Id: <3.0.3.32.19971117161241.00924400@boisfrancs.qc.ca> X-Sender: xenub@boisfrancs.qc.ca X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Mon, 17 Nov 1997 16:12:41 -0500 To: questions@freebsd.org From: Louis-Philippe Alain Subject: .htaccess and mod_rewrite Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have a CGI script the I want to be executed as soon as someone get "http://www.boisfrancs.qc.ca/"... But I don't want to make CGI script execution available everywhere... I tried to make a test with the ".htaccess" file in a simple user dir. Here's what I wrote: ------------ Options ExecCGI FollowSymLinks RewriteEngine on RewriteBase /~xenub/ RewriteRule ^index\.html$ /cgi-bin/redirection.cgi [T=application/x-httpd-cgi] ------------ It worked fine! (I have mod_rewrite module compiled in apache, a blank index.html document in /~xenub/ and my CGI script is called /cgi-bin/redirection.cgi... The problem is when I try this .htaccess into the / dir of my web server... Nothing happen... index.html is loaded but not rewrited to /cgi-bin/redirection.cgi... The only thing I changed in the .htaccess file was "/~xenub/" for "/". What else have I to do? Thanks a lot for your help! Louis-Philippe Alain