<?php

header
("HTTP/1.1 302 Found");
header('Location: ' dirname($_SERVER['REQUEST_URI']) . '/download-redirect2');
header('Content-Type: text/html; charset=UTF-8');

?><!DOCTYPE html>
<html>
  <head>
    <title>Download example</title>
    <meta charset="UTF-8">
  </head>
  <body>
    Lorem ipsum dolor sit amet
  </body>
</html>