I've been trying to set up my mod_proxy to redirect all requests from a certain ip address to one page with mod_rewrite, but have been having some trouble. Any help here?
Name:
Anonymous2007-07-20 2:53 ID:X96B2X9H
RewriteEngine on
RewriteCond %{REMOTE_ADDR} 219.104.184.91
RewriteRule .*$ banned.html [PT,L]
That would use the [R] tag, right? That doesn't work either.
Name:
Anonymous2007-07-20 16:00 ID:o8DsrFEL
Maybe this is why [P] doesn't: "Notice: To use this functionality make sure you have the proxy module compiled into your Apache server program."
I'm surprised [R] doesn't work. Try [R,L]. If that doesn't work either, all I can suggest is looking at the mod_rewrite documentation and trying different thing. mod_rewrite is a fickle beast.
mod_alias might be an adequate alternative too.
Name:
Anonymous2007-07-20 16:02 ID:o8DsrFEL
Oh, I forgot: if you really don't give a shit, and just want it to work, consider using >>4, and putting the redirect inside banned.html's HTML.
It's ugly, gross, and not pretty, but it'll do the job provided you have a sane mod_rewrite install.