Page is a not externally linkable
batface - 8:32 pm on Nov 7, 2012 (gmt 0)
What I can't get my head around (and I shouldn't be doing this in the middle of study :-) )is that if I amend the condition to a not IP, then the alternative image always displays - 1.1.1.1 or from anywhere.
RewriteCond %{REMOTE_HOST} !^1\.1\.1\.1
RewriteRule ^images/image\.png$ /directory/images/new-image.png[L]
In my simple mind this means "hey, if the visitor does not come from 1.1.1.1 use the alternative image." but the alternative image is now used from this visitor or anywhere.
What is it about !^1\.1\.1\.1 that is now allowing the rewrite rule to work, although incorrectly across the board? I am using the correct IP address.