httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: htaccess problems
Date Sat, 09 Feb 2002 16:31:13 GMT

On Sat, 9 Feb 2002, CDitty wrote:

> Thanks.  Something like this?  (I've never really been able to grasp this
> stuff)
>
> RewriteEngine On
> RewriteOptions inherit
> RewriteCond %{HTTP_REFERER} !^http://.*redhotsweeps.com/.*$ [NC]
> RewriteCond %{HTTP_REFERER} !^$ [NC]
> RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$|.*[Pp][Nn][Gg]$
> http://www.redhotsweeps.com/ [R,L]                              [F]

Yes.

I'm also not sure about your RewriteRule.  It doesn't look like a proper
regular expression to me.  But if it works, it works.

My guess would be more along the lines:
RewriteRule .*\.(jpg|gif|png)$ http://www.redhotsweeps.com/ [R,L,NC]

As I said, the only way to really figure out what is going on is to make
use of your log files (extended/combined access_log plus rewritelog).

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message