Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 73162 invoked from network); 12 Dec 2003 12:09:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Dec 2003 12:09:50 -0000 Received: (qmail 16704 invoked by uid 500); 12 Dec 2003 12:09:38 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 16573 invoked by uid 500); 12 Dec 2003 12:09:37 -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 16560 invoked from network); 12 Dec 2003 12:09:36 -0000 Received: from unknown (HELO exchange.ur.se) (195.54.121.71) by daedalus.apache.org with SMTP; 12 Dec 2003 12:09:36 -0000 Received: by EXCHANGE with Internet Mail Service (5.5.2653.19) id ; Fri, 12 Dec 2003 13:10:32 +0100 Message-ID: From: Edwards Jim To: "'users@httpd.apache.org'" Date: Fri, 12 Dec 2003 13:10:30 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] mod_rewrite on VirtualHost X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Here is the VirtualHost object in httpd.conf: DocumentRoot /path/to/vhost ServerName my.domain.com DirectoryIndex index.php index.html RewriteEngine On RewriteRule ^([A-Za-z0-9_]+)*$ /folder/$1.php [R,L] RewriteRule ^([A-Za-z0-9_]+)/([A-Za-z0-9_]+)*$ /folder/$2.php?parent1=$1 [R,L] RewriteRule ^([A-Za-z0-9_]+)/([A-Za-z0-9_]+)/([A-Za-z0-9_]+)*$ /folder/$3.php?parent1=$1&parent2=$2 [R,L] RewriteRule ^([A-Za-z0-9_]+)/([A-Za-z0-9_]+)/([A-Za-z0-9_]+)/([A-Za-z0-9_]+)*$ /folder/$4.php?parent1=$1&parent2=$2&parent3=$3 [R,L] Jim -----Original Message----- From: Robert Andersson [mailto:robert@profundis.nu] Sent: den 12 december 2003 03:57 To: users@httpd.apache.org Subject: Re: [users@httpd] mod_rewrite on VirtualHost Edwards Jim wrote: > I'm wondering if anyone has worked with URL rewriting within > a VirtualHost? /me raise hand > I've been able to get the rewrite engine to work on the root web > but the same rules do not work when applied to the VirtualHost. There might be slight variations because of different scopes. Please show us the rules (and also how they are placed in the VHost), and we might be able to help you. Regards, Robert Andersson --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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