That will pretty much match everything you need it to (www vs. non-www, virtual domains, different domain identifiers, etc.)
Thank you for the tip. I still have a problem with Google's cache files displaying properly. Text only displays. Not images or formatting.
Any Idea?
On a similar note, I'm trying to set up htaccess to prevent hotlinking but allow images to be viewed from multiple locations, my primary website and a forum hosted by someone else. The forum is at http://users.boardnation.com/~dragon76n/ so here's what I used:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?dragonshobbies.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(users\.)?boardnation.com/~dragon76n/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.dragonshobbies.com/dhminilogo.gif [R,L]
The problem was that it would still display my dhminilogo.gif on my forum.
Should I write out the address completely, instead of having users\. in parenthisis? (I just thought of this so I haven't had a chance to test it yet.) Or what should I do?