Forum Moderators: phranque
I do not want to do this because there would be many files, and each file would contain similar code to the others - so is there any way that when a file is called in a certain directory, if that file doesn't exist, a default file in the directory is called?
Thanks. (maybe more of an apache question, i duon't really know)
Welcome to WebmasterWorld!
Yes, use mod_rewrite [httpd.apache.org], and use RewriteCond %{REQUEST_FILENAME} -f ahead of RewriteRule to conditionally rewrite non-existent image requests to your image-generator file.
Jim