Am 20.11.2014 um 23:35 schrieb Kurt Roeckx:

- Log -----------------------------------------------------------------
commit e138d289a5639f166c2d1b62c421cbd9cb7b35f2
Author: Kurt Roeckx <k...@roeckx.be>
Date:   Thu Nov 20 23:34:52 2014 +0100

     Add a RewriteCond for each rule

     As far as I can tell you can only multiple conditions but they apply to 
only 1 rule.

-----------------------------------------------------------------------

Summary of changes:
  source/.htaccess |    8 ++++++++
  1 file changed, 8 insertions(+)

diff --git a/source/.htaccess b/source/.htaccess
index 3b3077c..9fe909e 100644
--- a/source/.htaccess
+++ b/source/.htaccess
@@ -7,9 +7,17 @@ RewriteEngine on
  # Old distro's are in subdirs.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule (openssl-0.9.8.*) old/0.9.x/$1 [L]
+
+RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule openssl-(1.0.0.*) old/1.0.0/openssl-$1 [L]
+
+RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule openssl-(1.0.1.*) old/1.0.1/openssl-$1 [L]
+
+RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule openssl-(1.0.2.*) old/1.0.1/openssl-$1 [L]

Copy&Paste: 1.0.2 on the right side?

+RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule openssl-(fips.*)  old/fips/openssl-$1 [L]

You could combine the last 4 (not the 0.9.x one):

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule openssl-(1\.\d\.\d|fips).*) old/$2/openssl-$1 [L]

Shorter but maybe less readable.

Regards,

Rainer
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to