Hey
Code:
RewriteRule ^filestore/(.*) fileprotect.php?file=$1 [L]
PHP Code:
<?php
$filename = addslashes($GET['file']).".zip";
$file = "/home/thesigns/public_html/filestore/".$filename;
echo $file;
if(!file_exists($file)) { die('hi'); }
echo 'test';
?>
I have a test.zip in the filestore directory.
I try accessing domain.com/filestore/test, and get "/home/thesigns/public_html/filestore/.ziphi" as output. Why isn't 'test' getting passed on?