mirror of
https://github.com/boostorg/website.git
synced 2026-01-28 07:42:16 +00:00
Will match for any versions later than the given version. Note that the first match is the successful one, so will need to put versions in reverse order, as will be seen in next commit.
22 lines
420 B
PHP
22 lines
420 B
PHP
<?php
|
|
|
|
if (strpos($_SERVER['REQUEST_URI'], '//') !== FALSE)
|
|
{
|
|
header("Location: http://$_SERVER[HTTP_HOST]".
|
|
preg_replace('@//+@','/', $_SERVER['REQUEST_URI']),
|
|
TRUE, 301);
|
|
exit(0);
|
|
}
|
|
|
|
require_once(dirname(__FILE__) . '/../common/code/boost.php');
|
|
|
|
$archive = new BoostArchive(array(
|
|
'zipfile' => false,
|
|
));
|
|
|
|
$archive->display_from_archive(
|
|
array(
|
|
array('', '@[.](html|htm)$@i','basic','text/html')
|
|
)
|
|
);
|