From 2ebdbda9d81bbde526e18c9029eecc63b146adbf Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 19 Apr 2008 14:21:52 +0000 Subject: [PATCH] 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). [SVN r44583] --- .htaccess | 5 +++++ development/.htaccess | 5 +++++ doc/.htaccess | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.htaccess b/.htaccess index 486edf4c..67e2d55d 100644 --- a/.htaccess +++ b/.htaccess @@ -7,6 +7,11 @@ DirectoryIndex index.php index.shtml index.html 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] diff --git a/development/.htaccess b/development/.htaccess index b0bb25bc..e00b0f20 100644 --- a/development/.htaccess +++ b/development/.htaccess @@ -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] diff --git a/doc/.htaccess b/doc/.htaccess index d2dff707..98dd2546 100644 --- a/doc/.htaccess +++ b/doc/.htaccess @@ -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]