Welcome to WebmasterWorld Guest from 18.104.22.168
Only problem is that when I run the auto-update function, the developers coders send a replacement copy of their header image which overwrites mine.
I do not want to change the code in the script. Besides the fact that he did not give permission to do that, the update will probably replace the code and I would have to take the chance of making a mistake somewhere along the line.
What I would like to do is use .htaccess to serve a different image than the one that is delivered with the script, sort of like serving a different image to someone who is hotlinking.
I am awfully weak with .htaccess. Mostly because in addition to being old, tired and ugly, I am having mental absorption issues. Can't absorb much more.
If soemone could please give me some ideas (even code the whole doo-hickey) i would appreciate it.
Thanks many times, and in advance,
Otherwise, the code will be identical to the anti-hotlinking code you can find here, except that you should remove the RewriteCond that checks the referrer, as it won't be needed.
BTW - where is the anti-hotlinking code you mentioned? Do I just search for it, or was there supposed to be a link in your reply?
Would this be it?
RewriteRule ^their\.gif$ my.gif [L]
But, using your advice as the search term, I did find an explanation at [yourhtmlsource.com...] which allowed me to understand the response from Caterham.
Thanks to both. Sorry for being so thick. I think whatever search term I was using in Google was giving me too many results and muddying the waters.
Cheers to both.
Only question is, do I need the backslash before the dash in the second image filename?
RewriteRule ^theirimage\.gif$ myimage.gif [L]
RewriteRule ^theirheader\-repeat\.gif$ myheader-repeat.gif [L]
Also, suggest you fix the casing of "RewriteEngine on", although it will work as-is on *almost* all servers.