maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1670214 - /maven/site/trunk/content/filtered-resources/.htaccess
Date Mon, 30 Mar 2015 23:21:04 GMT
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]



Mime
View raw message