PHP and Apache configuration
| From: | R B | Date: | Mon, 19 Jan 2009 19:28:10 +0000 |
| Subject: | PHP and Apache configuration | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-286683@lists.php.net to get a copy of this message | ||
Hello,
I need that every time someone access one image file in my server, then
redirect to a php file.
I make this well with:
Redirect 301 imagefile.jpg scriptfile.php
But i need that the file scriptfile.php can only be accessed by this
redirect command.
If someone try to access directly from the url
http://www.mydomain.com/xyz/scriptfile.php, i
want to send an error access.
I tried with:
<Files scriptfile.php>
Order allow,deny
Deny from all
</Files>
But with this configuration, the redirect command cant access the
scriptfile.php
Do you have the solution for this?
thanks.