Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 11242 invoked from network); 14 Apr 2009 15:28:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2009 15:28:30 -0000 Received: (qmail 56332 invoked by uid 500); 14 Apr 2009 15:28:26 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 56310 invoked by uid 500); 14 Apr 2009 15:28:26 -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 56301 invoked by uid 99); 14 Apr 2009 15:28:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 15:28:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tevans.uk@googlemail.com designates 209.85.219.162 as permitted sender) Received: from [209.85.219.162] (HELO mail-ew0-f162.google.com) (209.85.219.162) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 15:28:15 +0000 Received: by ewy6 with SMTP id 6so2794090ewy.24 for ; Tue, 14 Apr 2009 08:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=DnBWUElDDIFVTwpxqBL2tw1d20ziRfwwklXayFk0dvw=; b=YNYlY1WoczAnTlkkmW5ieMf2/35I9uDSnr8YdUL3aEQN5txHrjPksDFw038VdrZu5M KDciWDAMapm/2YP08k5js5zXejRylEAGUJblyn60C4pvefXST1B4+aXtFNIMYRuGssck O0k3+/Mw+6FNqYTCmWjr/pCwgj46bRoLZsd18= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=E3hZAamhKaO+MMdtGpBkTPy1+em9XQ7ZpPavcz+pt0JUcbr0pjrLq0Tm1AA5MSwUwc OViL1MCdm655TXq8wu41osekPAB1Uj6Pi19Ej6BXztB+kPMogjv7r7baY8xbWTkXSQpD ntmxYTY8vF3HP+jq5BN81S501T+RhlapRdvRs= Received: by 10.216.26.201 with SMTP id c51mr1790175wea.228.1239722875408; Tue, 14 Apr 2009 08:27:55 -0700 (PDT) Received: from ?127.0.0.1? (87-194-39-182.bethere.co.uk [87.194.39.182]) by mx.google.com with ESMTPS id g9sm16432620gvc.16.2009.04.14.08.27.54 (version=SSLv3 cipher=RC4-MD5); Tue, 14 Apr 2009 08:27:55 -0700 (PDT) From: Tom Evans To: users@httpd.apache.org In-Reply-To: <23040977.post@talk.nabble.com> References: <23040977.post@talk.nabble.com> Content-Type: text/plain Date: Tue, 14 Apr 2009 16:27:53 +0100 Message-Id: <1239722873.7491.181.camel@strangepork.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Problem with Mod_Rewrite On Tue, 2009-04-14 at 07:49 -0700, ricardo13 wrote: > Hi all, > > I'm doing some tests with module rewrite (mod_rewrite), but I'm have > problems. > I typed the follow in http.conf: > > > RewriteEngine on > RewriteRule ^index.html$ new.html > > > When I type in browser localhost/index.html don't happen nothing. I have > file index.html and new.html !!! > What's happen ??? is wrong ??? > > Ricardo > > In the httpd.conf, the file path to rewrite includes the '/', so your RewriteRule does not match. Try: RewriteRule ^/index.html$ /new.html If that doesn't work, add: RewriteLog /path/to/somewhere/we/can/log/rewrite.log RewriteLogLevel 5 This should tell you whether a rule does or does not match, and exactly why. Cheers Tom --------------------------------------------------------------------- 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