Some-User
06-18-2009, 04:15 PM
Hi,
I currently have a rewrite rule for "www.domain.com/folder/*.jpg" which then links to a PHP script to determine if the file exists or not. If the file does not exist then PHP echos a not avaliable image. The images are not stored in the folder "folder" but in "folder2".
Obviously using PHP to handle images is very resource intensive.
Is there any way using mod_rewrite that you can:
Accept a url from www.domain.com/folder/.*jpg
Checks against folder2/.*jpg to see if exists
If not exist replaces with a different file
If exists load the image from folder2/*.jpg
I've tried many different cominations but to no avail.
I currently have a rewrite rule for "www.domain.com/folder/*.jpg" which then links to a PHP script to determine if the file exists or not. If the file does not exist then PHP echos a not avaliable image. The images are not stored in the folder "folder" but in "folder2".
Obviously using PHP to handle images is very resource intensive.
Is there any way using mod_rewrite that you can:
Accept a url from www.domain.com/folder/.*jpg
Checks against folder2/.*jpg to see if exists
If not exist replaces with a different file
If exists load the image from folder2/*.jpg
I've tried many different cominations but to no avail.
