View Full Version : http:// to http://www.

07-01-2004, 04:12 PM
I'm using a .htaccess file to stop hotlinking to images on my site. It works fine for http://www.stephennewton.com, but http://stephennewton.com is treated as a hotlinker.
There must be a simple way of sending http://stephennewton.com users to http://www.stephennewton.com

Willy Duitt
07-01-2004, 04:24 PM
Then fix your .htaccess file to include both pointers.......

07-01-2004, 05:00 PM
The code I'm using is...

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.stephennewton.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://us.f2.yahoofs.com/users/402b51c2_1740/bc/880e/__sr_/fa90.jpg?phRi.4ABcv2FZBc3 [R,L]