Hi Guys,
Not sure if anyone has came across this issue before? Recently,
I tried to redirect any failed URLs to another server using apache
Rewrite as following:
RewriteEngine on
RewriteCond %{REQUEST_URI} !-U
RewriteRule ^(.+) http://serverB/$1
I test this with
http://serverA/test.jpg which doesn't exist in server
A, and the jpg file will be under serverB. But this doesn't work as
expected, log shows that it pass through it tried to redirect to
http://serverB/test.jpg but then it just say "pass through /
test.jpg".
This solution is the URL redirect solution in Apache2.2 document under
"URL rewrite guide". I tried hours to get this work, but no luck.
Anybody can help me with this?
Thanks