Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 79808 invoked by uid 500); 3 Dec 2002 18:22:29 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 79750 invoked from network); 3 Dec 2002 18:22:28 -0000 Received: from access.atpco.com (HELO mailbox.atpco.com) (206.181.245.167) by daedalus.apache.org with SMTP; 3 Dec 2002 18:22:28 -0000 Received: from SYSCDAY ([10.35.14.109]) by mailbox.atpco.com (5.6 UNICOS/8.9.3) with SMTP id NAA15212 for ; Tue, 3 Dec 2002 13:30:06 -0500 (EST) From: "Chad Day" To: Date: Tue, 3 Dec 2002 13:24:59 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] Mod_rewrite rule help.. I'm having a lot of trouble trying to get apache to even recognize this rule, which I'm sure I wrote wrong. I want requests that look like: http://calendar.domain.com/user1 http://calendar.domain.com/user2 http://calendar.domain.com/user3 which would be 404 documents, to redirect to http://calendar.domain.com/view.php?ID=user1 http://calendar.domain.com/view.php?ID=user2 http://calendar.domain.com/view.php?ID=user3 so I could pull up that user's calendar and display it. The rule I had been fiddling with was: RewriteEngine on RewriteCond %{REQUEST_URI} ^/([^/]+)/?$ RewriteCond /usr/local/www/sites/domain.com/htdocs/calendar/$1 !-d [NC] RewriteRule /.* http://calendar.domain.com/view.php?ID=$1 [R,L] RewriteEngine Off I'm sure I screwed it up though.. nothing is appearing in the rewrite log (and I have that defined earlier in the conf) .. can anyone help me out with this? Thanks, Chad --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org