Forum Moderators: phranque
i have the following simple rewrite directives:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^aaa
RewriteRule ^.* /other.txt [PT,L]
now, it works well on the <virtualhost> directive-
but as I want to apply it to all virtualhosts, i want to put it in server config- yet it doesn't work, for some reason, in the server config.
does anyone have an idea?
thanks!
f.
Jim, following your suggestion- I tried:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^aaa
RewriteRule ^.* "http://www.domain.com/other.txt" [L]
still- it works perfectly on the virtualhost section, doesn't work at all on the serverconfig.
also, i tried to have a RewriteLogLevel 9, hoping to see something at the rewrite log file, but it was empty.
any more ideas?
thanks again for the reply,
f.
Well, I'm fresh out of ideas... Perhaps a read through some other threads on this subject [google.com] will help.
Jim