Use htaccess to Redirect JPG Images to Custom PHP Page
Posted on 2009-02-10
Hello, I've been all over this site for the past 2 days but I can't seem to find a solution to my problem. I have a secured folder on my site that has directory view enabled. The folder is called "line_sheets, and specific customers can log in to this folder to view advance images of our new products. I have a php file called "images.php" with a header and some CSS on it and I want the jpg images to appear in that file.
I tried several rewrites in the htaccess file, sending jpg requests to images.php. But I cant get the images to load in the php file, as my php skills are lackluster. I know this can be done, Im just not sure how. Any advice would be greatly appreciated. Thanks.