Thread: Mod rewrite
View Single Post
05-30-2006, 09:22 PM
#1
.Nick is offline .Nick
.Nick's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 1,159
iTrader: 3 / 100%
 

.Nick is on a distinguished road

  Old  Mod rewrite

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?