PHP header("Location: TO OUTPUT FLE TXT

PHP
<?php
// This will just redirect you to example.com
$url = "https://example.com";
header("Location: $url");  
?>header("Location: http://example.com");
die();
Source

Also in PHP: