Author: bimargulies
Date: Sun Nov  8 14:49:16 2015
New Revision: 971756

Log:
Add a redirect to allow URLs to reach content generated by the 
maven-scm-publish-plugin.

Modified:
    websites/production/felix/content/.htaccess

Modified: websites/production/felix/content/.htaccess
==============================================================================
--- websites/production/felix/content/.htaccess (original)
+++ websites/production/felix/content/.htaccess Sun Nov  8 14:49:16 2015
@@ -1,2 +1,16 @@
 ErrorDocument 403 /errors/403.html
 ErrorDocument 404 /errors/404.html
+
+RewriteEngine on
+
+# if file is not found in CMS content, look into components
+RewriteCond %{REQUEST_URI} !^/components/
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^(.*)$ /components/$1 [C]
+
+# in case of directory without trailing /, do the redirect or httpd
+will do a redirect from /foo to /components/foo/
+RewriteCond %{REQUEST_FILENAME} -d
+RewriteCond %{REQUEST_URI} !/$
+RewriteRule components/(.*) /$1/ [R]


Reply via email to