maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1670227 - /maven/site/trunk/content/filtered-resources/.htaccess
Date Tue, 31 Mar 2015 00:07:59 GMT
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]



Mime
View raw message