Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-04-19 10:21:53


Author: danieljames
Date: 2008-04-19 10:21:52 EDT (Sat, 19 Apr 2008)
New Revision: 44583
URL: http://svn.boost.org/trac/boost/changeset/44583

Log:
Redirect boost.org => www.boost.org, so that there is a cannonical URL.
(This won't have any real effect until it's merged into live).

Text files modified:
   website/public_html/beta/.htaccess | 5 +++++
   website/public_html/beta/development/.htaccess | 5 +++++
   website/public_html/beta/doc/.htaccess | 5 +++++
   3 files changed, 15 insertions(+), 0 deletions(-)

Modified: website/public_html/beta/.htaccess
==============================================================================
--- website/public_html/beta/.htaccess (original)
+++ website/public_html/beta/.htaccess 2008-04-19 10:21:52 EDT (Sat, 19 Apr 2008)
@@ -7,6 +7,11 @@
 RewriteEngine On
 RewriteBase /
 
+########## Redirect to the canonical URL.
+
+RewriteCond %{HTTP_HOST} ^boost\.org [NC]
+RewriteRule ^.*$ http://www\.boost\.org%{REQUEST_URI} [R=301]
+
 ########## Rewrites to serve up dynamic RSS feeds.
 
 RewriteRule ^users/news/([-\w]+)$ users/news/entry.php/$1 [L]

Modified: website/public_html/beta/development/.htaccess
==============================================================================
--- website/public_html/beta/development/.htaccess (original)
+++ website/public_html/beta/development/.htaccess 2008-04-19 10:21:52 EDT (Sat, 19 Apr 2008)
@@ -1,6 +1,11 @@
 RewriteEngine On
 RewriteBase /development
 
+# Redirect to the canonical URL.
+
+RewriteCond %{HTTP_HOST} ^boost\.org [NC]
+RewriteRule ^.*$ http://www\.boost\.org%{REQUEST_URI} [R=301]
+
 #~ Locally available regression result archives.
 RewriteRule ^tests$ tests/ [R]
 RewriteRule ^tests/([^/]+)/([^/]+)/$ tests/$1/$2/index.html [R]

Modified: website/public_html/beta/doc/.htaccess
==============================================================================
--- website/public_html/beta/doc/.htaccess (original)
+++ website/public_html/beta/doc/.htaccess 2008-04-19 10:21:52 EDT (Sat, 19 Apr 2008)
@@ -1,6 +1,11 @@
 RewriteEngine On
 RewriteBase /doc
 
+# Redirect to the canonical URL.
+
+RewriteCond %{HTTP_HOST} ^boost\.org [NC]
+RewriteRule ^.*$ http://www\.boost\.org%{REQUEST_URI} [R=301]
+
 #~ RewriteRule ^wiki$ wiki/ [R]
 #~ RewriteRule ^wiki/(.*)$ wiki.php/$1 [L]
 RewriteRule ^html(/.*)?$ libs/release/doc/html$1 [R]


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