Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66373 - website/public_html/beta/doc
From: dnljms_at_[hidden]
Date: 2010-11-03 07:47:21


Author: danieljames
Date: 2010-11-03 07:47:20 EDT (Wed, 03 Nov 2010)
New Revision: 66373
URL: http://svn.boost.org/trac/boost/changeset/66373

Log:
Remove unnecessary checks in regular expression.

The path has already been checked, no need to check it again. Just check the
end of the string. Alternatively, could probably do the check inside the
RewriteRule.

Text files modified:
   website/public_html/beta/doc/.htaccess | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: website/public_html/beta/doc/.htaccess
==============================================================================
--- website/public_html/beta/doc/.htaccess (original)
+++ website/public_html/beta/doc/.htaccess 2010-11-03 07:47:20 EDT (Wed, 03 Nov 2010)
@@ -25,7 +25,7 @@
 
 #~ # In case we don't get a file looking URI we send it to the index.html file.
 #~ # - With some exceptions.
-RewriteCond %{REQUEST_URI} !^/doc/libs/([0-9_]+)/([^.]*[^./])/(Jamroot|Jamfile|ChangeLog)$
+RewriteCond %{REQUEST_URI} !/(Jamroot|Jamfile|ChangeLog)$
 RewriteRule ^libs/([0-9_]+)/([^.]*[^./])/?$ libs/$1/$2/index.html [R]
 
 # Rewrite specific versions to the dynamic handlers.


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk