2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-31 08:42:24 +00:00

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]
This commit is contained in:
Daniel James
2008-04-19 14:21:52 +00:00
parent ebf4588612
commit 2ebdbda9d8
3 changed files with 15 additions and 0 deletions

View File

@@ -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]

View File

@@ -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]

View File

@@ -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]