( szantogy | 2021. 11. 24., sze – 18:55 )

Esetleg ha így néz ki a linked: domainnevem.hu/letoltes/azugyfelfotoi
és van ott egy index.php

<html>
<body>
<h1>redman foto</h1>
<?php
    if(!empty($_GET['file'])) {
        $file = str_replace("/","",$_GET['file']).".zip";
        if(file_exists($file)) {
            echo "<a href='$file'>$file</a>";
        } else {
            echo "Hibas link :(";
        }
    }
?>
</body>
</html>

és egy .htaccess file

DirectoryIndex index.php

RewriteEngine on

RewriteBase /letoltes/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
 
RewriteRule ^(.*)$ index.php?file=$1 [L]

Persze lehet még rajta szépíteni bőven :)