2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-31 20:52:15 +00:00
Files
website/doc/.htaccess
Automated Commit bb39f2b237 1.67.0
2018-04-14 20:37:52 +00:00

54 lines
2.1 KiB
ApacheConf

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 ^html(/.*)?$ libs/release/doc/html$1 [R=301]
# Always serve up the latest css/image files in doc/html and doc/src
# in release versions.
RewriteRule ^libs/[0-9][^/]*/doc/(?:html|src)/(.*\.css)$ libs/common/doc/src/$1 [L]
RewriteRule ^libs/[0-9][^/]*/doc/(?:html|src)/images/([^/]*)$ libs/common/doc/src/images/$1 [L]
RewriteRule ^libs/[0-9][^/]*/boost.png$ libs/common/boost.png [L]
# Redirect library directories before redirecting to the current version.
# Trying to establish a standard location.
RewriteRule ^libs/release/libs/([^./]+)$ libs/release/libs/$1/ [R=301]
RewriteRule ^libs/development/libs/([^./]+)$ libs/development/libs/$1/ [R=301]
# REDIRECT_UPDATE_START
#
# This section is automatically updated.
# Any edits will be overwritten.
#
# Redirect from symbolic names to current versions.
RewriteRule ^libs/release(/.*)?$ libs/1_67_0$1 [R=303]
RewriteRule ^libs/development(/.*)?$ libs/1_67_0$1 [R=303]
#
# REDIRECT_UPDATE_END
# Rewrite specific versions to the dynamic handlers.
RewriteRule ^libs/(master|develop|latest|[0-9_]+(?:b(?:eta)?[0-9]*|snapshot)?)/?$ libraries.php/$1 [L]
RewriteRule ^libs/$ libraries.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^libs/(master|develop|latest|[0-9_]+(?:b(?:eta)?[0-9]*|snapshot)?)/(.+)$ display_libs.php/$1/$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(regression)/(.*)$ display_extra_docs.php/$1/$2 [L]
# Redirect tool documentation to new locations.
RewriteRule ^tools(?:\.html)?/jam/jam/(language|miscellaneous|history).html$ /boost-build2/doc/html/jam/$1.html [R=301]
RewriteRule ^tools(?:\.html)?/jam(/|$) /boost-build2/doc/html/bbv2/jam.html [R=301]
RewriteRule ^tools(?:\.html)?/build$ /boost-build2/ [R=301]
RewriteRule ^tools(?:\.html)?/build/(.*) /boost-build2/$1 [R=301]
RewriteRule ^tools(?:\.html)?/(regression)/?(.*)$ /doc/$1/$2 [R=301]
RewriteRule ^(regression)$ /doc/$1/ [R=301]
# Other tools
RewriteRule ^tools(\.html)?/(.*) libs/release/tools/$2 [R]