You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2015/03/31 01:21:04 UTC

svn commit: r1670214 - /maven/site/trunk/content/filtered-resources/.htaccess

Author: hboutemy
Date: Mon Mar 30 23:21:04 2015
New Revision: 1670214

URL: http://svn.apache.org/r1670214
Log:
hask to avoid /foo redirect to /components/foo/: redirect once again, this time to /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=1670214&r1=1670213&r2=1670214&view=diff
==============================================================================
--- maven/site/trunk/content/filtered-resources/.htaccess (original)
+++ maven/site/trunk/content/filtered-resources/.htaccess Mon Mar 30 23:21:04 2015
@@ -87,3 +87,9 @@ 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]