Merge branch 'master' of ssh://maxious.lambdacomplex.org/git/disclosr
[disclosr.git] / documents / redirect.php
blob:a/documents/redirect.php -> blob:b/documents/redirect.php
<?php <?php
$subdomain = str_replace('disclo.gs','',$_SERVER['SERVER_NAME']); $subdomain = str_replace('disclo.gs', '', $_SERVER['SERVER_NAME']);
$script = $_SERVER['REQUEST_URI']; $script = $_SERVER['REQUEST_URI'];
   
if ($script == '/google676a414ad086cefb.html') { if ($script == '/google676a414ad086cefb.html') {
echo 'google-site-verification: google676a414ad086cefb.html'; echo 'google-site-verification: google676a414ad086cefb.html';
exit(); exit();
} }
if ($script == '/googlebcce906c6b666bb8.html') { if ($script == '/googlebcce906c6b666bb8.html') {
echo 'google-site-verification: googlebcce906c6b666bb8.html'; echo 'google-site-verification: googlebcce906c6b666bb8.html';
exit(); exit();
} }
   
header('HTTP/1.1 301 Moved Permanently'); header('HTTP/1.1 301 Moved Permanently');
header('Location: http://'.$subdomain.'disclosurelo.gs'.$script); header('Location: http://' . $subdomain . 'disclosurelo.gs' . $script);
exit(); exit();
?> ?>