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.