Here is the php code in (path/file.php)
- Code: Select all
<?php
ob_start();
header("Location: http://" . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. "file/" . ($entry));
ob_end_flush();
?>
This will send the $entry variable back to itself (path/file/$entry)
Here is the .htaccess file in (path/.htaccess)
- Code: Select all
RewriteEngine on
Rewrite Base /
RewriteRule ^file/(.*)$ file.php?entry=$1 [L]
This should? take file/var format and interpret as file.php?entry=var.
The theory dosn't work.
I don't know why.
Can this be fixed or is there another way to do it?
another senario:
if I have another file called files.php that has the above php code in it,
and I have a file called file.php without the above php code,
then it will work once. (pass from files to file)
Just doesnt seem to want to work when passed to itself? (file to file)
signed,
Stumped but not felled.