Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 78828 invoked from network); 4 Feb 2008 23:29:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2008 23:29:52 -0000 Received: (qmail 99868 invoked by uid 500); 4 Feb 2008 23:29:35 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 99854 invoked by uid 500); 4 Feb 2008 23:29:35 -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 99843 invoked by uid 99); 4 Feb 2008 23:29:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 15:29:35 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of covener@gmail.com designates 209.85.198.187 as permitted sender) Received: from [209.85.198.187] (HELO rv-out-0910.google.com) (209.85.198.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 23:29:05 +0000 Received: by rv-out-0910.google.com with SMTP id l15so1431915rvb.24 for ; Mon, 04 Feb 2008 15:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=JjOmbbhefXeZ1STFT4mNUB1aqsw5OiG1sSq0K1rVqCQ=; b=RNg77e1XqZxoaBJle9U6yrGXMdQ9ELV/v5kQ3IZC6Y7cwcX7hDExThjEARHNWZICtPZviX7TvkOXzY3gU4ga8inIrzqIq4MG+IAictvp9SbtO+GbZ1AAqSNibS9xb1S3It2rEcS3LREh/G4Ams6SF6GkKcv+WxrfkxeCuCKNoXg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vmhjSDnHUChL9YoVxe6iSog5DkacG7YSF4ncH+HSeDh2wOTo1n2Q4z6RWSZQQf2IGX181/VYqWV6uZA4NxV0UMT66MEBWDOXI2n2adiyxUUkdlQ0Yj3m3s/eUzoHfIfxgNMXoPZp69XColMj2nDb1CIYW7TD3HnrZJk6GnEEdBs= Received: by 10.141.62.15 with SMTP id p15mr5132375rvk.159.1202167733293; Mon, 04 Feb 2008 15:28:53 -0800 (PST) Received: by 10.141.163.2 with HTTP; Mon, 4 Feb 2008 15:28:53 -0800 (PST) Message-ID: <1404e5910802041528n5fe6d914x61e057d2c75a8db4@mail.gmail.com> Date: Mon, 4 Feb 2008 18:28:53 -0500 From: "Eric Covener" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] RewriteRule: foo.com/directory --> foo.com/directory/ On Feb 4, 2008 5:20 PM, thomas Armstrong wrote: > I tried adding this line > --------- > RewriteRule ^(.*)$ /$1/ [R=301] > --------- > The page isn't redirecting properly At least protect it from running when the URL ends in a slash such as: RewriteRule ^(.*[^/])$ /$1/ [R=301] You're unexpected behavior is a result of doing rewrite in .htaccess, so the rules are re-visited at a later stage despite the L flag. -- Eric Covener covener@gmail.com --------------------------------------------------------------------- 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