Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 66623 invoked from network); 25 Jun 2007 08:22:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 08:22:38 -0000 Received: (qmail 71016 invoked by uid 500); 25 Jun 2007 08:22:29 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 71003 invoked by uid 500); 25 Jun 2007 08: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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 70992 invoked by uid 99); 25 Jun 2007 08:22:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 01:22:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [146.109.240.232] (HELO irp0b.swx.com) (146.109.240.232) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 01:22:23 -0700 Received: from unknown (HELO gate0a.unix.swx.ch) ([192.168.252.17]) by irp0b.swx.com with ESMTP; 25 Jun 2007 10:22:01 +0200 X-IronPort-AV: i="4.16,458,1175464800"; d="scan'208"; a="8274603:sNHT44938552" Received: from CIWMEXZSA0E.ex.ordersx.org (siwmexzsa0a.ex.ordersx.org [172.20.29.10]) by gate0a.unix.swx.ch (8.13.4/8.13.4) with ESMTP id l5P8M1jV028521 for ; Mon, 25 Jun 2007 10:22:01 +0200 (MEST) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826 Importance: normal Priority: normal Date: Mon, 25 Jun 2007 10:22:00 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Getting a simple mod_rewrite "Rewrite thread-index: Ace27m8J07vfETCCSk6o6DukV8ndnAAEzxcg From: "Boyle Owen" To: X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Getting a simple mod_rewrite "Rewrite > -----Original Message----- > From: Eraticus Majoricus [mailto:eraticus@gmail.com]=20 > Sent: Monday, June 25, 2007 8:02 AM > To: users@httpd.apache.org > Subject: [users@httpd] Getting a simple mod_rewrite "Rewrite >=20 > Apache users, >=20 > I have had a problem with the use of mod_rewite. I'm hoping that =20 > someone can point me in the right direction... >=20 > To test the usage of mod_rewrite, I am trying to direct users who =20 > connect to "/" to get /index.html.fr, that is, the French version of =20 > the default home page. In order to do this, I have added this to the =20 > httpd.conf file: >=20 > #LoadModule rewrite_module modules/mod_rewrite.so > #AddModule mod_rewrite.c > Options SymlinksIfOwnerMatch > RewriteEngine On > RewriteRule ^/$ /index.html.fr [L] >=20 > This seems to have no effect at all. If I have a syntax error in my =20 > RewriteRule directive, I receive an error, but if it is correct, it =20 > seems not to affect the behavior of httpd in the least. >=20 > The test platform is a Mac running OS 10.4. The version of httpd is =20 > 2.2 compiled fresh. >=20 > I would be thankful for any help at all. As a general tip, whenever you have problems understanding what mod_rewrite is doing, switch on the RewriteLog (http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritelog) Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored.=20 >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP=20 > 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 > =20 =20 This message is for the named person's use only. It may contain = confidential, proprietary or legally privileged information. No = confidentiality or privilege is waived or lost by any mistransmission. = If you receive this message in error, please notify the sender urgently = and then immediately delete the message and any copies of it from your = system. Please also immediately destroy any hardcopies of the message. = You must not, directly or indirectly, use, disclose, distribute, print, = or copy any part of this message if you are not the intended recipient. = The sender's company reserves the right to monitor all e-mail = communications through their networks. Any views expressed in this = message are those of the individual sender, except where the message = states otherwise and the sender is authorised to state them to be the = views of the sender's company. --------------------------------------------------------------------- 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