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]