mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
24 lines
493 B
Cheetah
24 lines
493 B
Cheetah
<?php
|
|
|
|
/**
|
|
* This is a system-generated PHP script that performs header management for
|
|
* a 301 redirection.
|
|
*
|
|
* @package static
|
|
*/
|
|
|
|
define('DESTINATION', '**DESTINATION**');
|
|
define('MAX_AGE', 3600);
|
|
|
|
if(MAX_AGE > 0) {
|
|
header("Cache-Control: max-age=" . MAX_AGE);
|
|
header("Pragma:");
|
|
} else {
|
|
header("Cache-Control: no-cache, max-age=0, must-revalidate");
|
|
}
|
|
|
|
header("Expires: " . gmdate('D, d M Y H:i:s', time() + MAX_AGE) . ' GMT');
|
|
header("Location: " . DESTINATION, true, 301);
|
|
|
|
?>
|