ozzmans Posted June 21, 2007 Share Posted June 21, 2007 Hi Guys, I have a jpg called Test.jpg in serverB, index.html on serverA. index.html has <img> tage with src=serverA.com/Test.jpg. serverA doesn't have Test.jpg so I use Rewrite to redirect the link to serverB as following: RewriteEngine on RewriteCond %{REQUEST_URI} !-U RewriteRule ^(.+)$ http://serverB/$1 This doesn't work as I expected, anyone can help me with this? Cheers Quote Link to comment Share on other sites More sharing options...
ozzmans Posted June 21, 2007 Author Share Posted June 21, 2007 Basically, what I am trying to do is to redirect any failed URL to another web server called servberB. From Apache 2.2 document http://httpd.apache.org/docs/2.2/misc/rewriteguide.html "Redirect Failing URLs To Other Webserver" RewriteEngine on RewriteCond %{REQUEST_URI} !-U RewriteRule ^(.+) http://serverB/$1 this should do the trick, but it didn't work for me. Anybody tried to use this? Or is there any other suggestions that can redirect failling URLs to another web server? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.