Return-Path: X-Original-To: apmail-maven-commits-archive@www.apache.org Delivered-To: apmail-maven-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 791B51771A for ; Tue, 31 Mar 2015 00:08:22 +0000 (UTC) Received: (qmail 15531 invoked by uid 500); 31 Mar 2015 00:08:00 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 15473 invoked by uid 500); 31 Mar 2015 00:08:00 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 15464 invoked by uid 99); 31 Mar 2015 00:08:00 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2015 00:08:00 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 2A860AC006A for ; Tue, 31 Mar 2015 00:08:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1670227 - /maven/site/trunk/content/filtered-resources/.htaccess Date: Tue, 31 Mar 2015 00:07:59 -0000 To: commits@maven.apache.org From: hboutemy@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150331000800.2A860AC006A@hades.apache.org> Author: hboutemy Date: Tue Mar 31 00:07:59 2015 New Revision: 1670227 URL: http://svn.apache.org/r1670227 Log: new rewrite rule provided by Joe to redirect /foo to /foo/ instead of /components/foo/ Modified: maven/site/trunk/content/filtered-resources/.htaccess Modified: maven/site/trunk/content/filtered-resources/.htaccess URL: http://svn.apache.org/viewvc/maven/site/trunk/content/filtered-resources/.htaccess?rev=1670227&r1=1670226&r2=1670227&view=diff ============================================================================== --- maven/site/trunk/content/filtered-resources/.htaccess (original) +++ maven/site/trunk/content/filtered-resources/.htaccess Tue Mar 31 00:07:59 2015 @@ -80,16 +80,9 @@ RewriteRule ^core-its-htaccess(.*)$ /com RewriteCond %{REQUEST_URI} !^/components/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.*)$ /components/$1 +RewriteRule ^(.*)$ /components/$1 [C] # in case of directory without trailing /, do the redirect or httpd will do it to /components/foo/ -RewriteCond %{REQUEST_URI} ^/components/ RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_URI} !/$ -RewriteRule /components/(.*) $1/ [R] - -# hask: in case of /component/foo/ (with trailing /), do /foo/ redirect -RewriteCond %{REQUEST_URI} ^/components/ -RewriteCond %{REQUEST_FILENAME} -d -RewriteCond %{REQUEST_URI} /$ -RewriteRule /components/(.*) $1 [R] +RewriteRule ^components/(.*) $1/ [R]