mirror of
https://github.com/boostorg/website.git
synced 2026-01-26 07:02:23 +00:00
79 lines
3.4 KiB
ApacheConf
79 lines
3.4 KiB
ApacheConf
AddType text/html .shtml
|
|
AddOutputFilter INCLUDES .shtml
|
|
AddOutputFilter INCLUDES .html
|
|
|
|
AddType text/x-component .htc
|
|
|
|
DirectoryIndex index.php index.shtml index.html
|
|
|
|
# Override cache headers for the index files are updated more regularly than
|
|
# other html files.
|
|
<FilesMatch "index\.html|index\.php">
|
|
Header unset Cache-Control
|
|
Header unset Expires
|
|
</FilesMatch>
|
|
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
|
|
########## Block Morfeus scanning
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} ^Morfeus
|
|
RewriteRule ^.*$ - [F]
|
|
|
|
########## 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/(version_[-\w]+)$ users/history/$1 [L,R=301]
|
|
RewriteRule ^users/download/(version_[-\w]+)$ users/history/$1 [L,R=301]
|
|
RewriteRule ^users/news/([-\w]+)$ users/news/$1.html [L]
|
|
RewriteRule ^users/download/([-\w]+)$ users/download/$1.html [L]
|
|
RewriteRule ^users/history/([-\w]+)$ users/history/$1.html [L]
|
|
|
|
########## Rewrites to serve up "sub-projects".
|
|
|
|
RewriteRule ^boost-build2$ boost-build2/ [R]
|
|
RewriteRule ^boost-build2/doc/html/bbv2/advanced/(.*)$ boost-build2/doc/html/bbv2/overview/$1 [R]
|
|
RewriteRule ^boost-build2/(boost-build[.]tar[.]bz2)$ common/code/boost_download.php/$1 [L]
|
|
RewriteRule ^boost-build2/(boost-build[.]zip)$ common/code/boost_download.php/$1 [L]
|
|
RewriteRule ^boost-build2/(.*) doc/display_build.php/boost-build/boost-build/$1 [L]
|
|
|
|
########## Rewrite rules to support the regression test links from the old site.
|
|
|
|
#~ RewriteRule ^regression/(.+)\.cpp$ http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/$1.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup [R,L]
|
|
RewriteRule ^regression/developement(/.*) development/tests/trunk$1 [R=permanent,L]
|
|
RewriteRule ^regression/release(/.*) http://engineering.meta-comm.com/boost-regression/1_34_1$1 [R,L]
|
|
RewriteRule ^regression/trunk(/.*) development/tests/trunk$1 [R=permanent,L]
|
|
RewriteRule ^regression-logs/?$ development/testing.html [R=permanent,L]
|
|
|
|
########## Shorter names for URL that must be printed during build process
|
|
|
|
RewriteRule ^getting_started_unix.html doc/libs/release/more/getting_started/unix-variants.html
|
|
RewriteRule ^getting_starged_windows.html doc/libs/release/more/getting_started/windows.html
|
|
|
|
########## Rewrite old site links to new locations.
|
|
|
|
# The boost header subdir, goes to the docs. Note, mod_rewrite is broken in some
|
|
# Apache versions. So we have to handle a rather strange translation of boost.png
|
|
# as a dir because it's somehow hardwired to replace /boost/* with /boost.png/*
|
|
# before *any* rewrite rules are checked. Which is just nasty!!
|
|
RewriteRule ^boost([.]png)?/(.*) doc/libs/release/boost/$2 [R=permanent,L]
|
|
# The libs subdirs
|
|
RewriteRule ^libs(/.*)?$ doc/libs/release/libs$1 [R=permanent,L]
|
|
# The people pages
|
|
RewriteRule ^people/people.htm users/people.html [R=permanent,L]
|
|
RewriteRule ^people/?$ users/people.html [R=permanent,L]
|
|
RewriteRule ^people/([^.]+) users/people/$1.html [R=permanent,L]
|
|
# The status pages, all go to the testing intro
|
|
RewriteRule ^status(.*) development/testing.html [R=permanent,L]
|
|
# The tools pages (todo)
|
|
RewriteRule ^tools(/.*)?$ doc/tools$1 [R=permanent,L]
|
|
# The wiki
|
|
RewriteRule ^wiki/?$ http://svn.boost.org/trac/boost [R,L]
|
|
# The license file. (This link was never correct, but it's common enough to require a redirect).
|
|
RewriteRule ^LICENSE-1.0$ LICENSE_1_0.txt [R=permanent,L]
|