Forum Moderators: goodroi
<Directory /var/www/robots-txt/>
<Files handler.php>
SetHandler application/x-httpd-php
</Files>
</Directory>
ScriptAliasMatch ^/robots.txt$ /var/www/robots-txt/handler.php
<?php
header("Content-type: text/plain");
echo "# :)\n";
if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/robots.txt")) readfile($_SERVER["DOCUMENT_ROOT"] . "/robots.txt");
?>