<?php

header
('Content-Type: text/html; charset=UTF-8');

if (@
$_GET['meta'] !== '1')
{
  
header('Refresh: 0; url=' dirname($_SERVER['REQUEST_URI']) . '/download-redirect2');
}

?><!DOCTYPE html>
<html>
  <head>
    <title>Download example</title>
    <meta charset="UTF-8">

    <?php
      
if (@$_GET['meta'] === '1')
      {
        
?><meta http-equiv='Refresh' content="1; url=http://<?php
          
echo $_SERVER['HTTP_HOST'] . dirname($_SERVER['REQUEST_URI']);
        
?>/download-redirect2"><?php
      
}
    
?>
  </head>
  <body><?php //phpinfo(); ?>
    Lorem ipsum dolor sit amet
  </body>
</html>