Help with mod_rewrite

Hi Apache config guru's,

I want to use the following configuration to redirect unknown URL's to a different server:

RewriteEngine On

RewriteCond %{REQUEST_URI} !-U
RewriteRule ^(.*) http://other.server/$1 [NS]

But the rewrite enngine does not recognize http://myserver/foo.html as a non-existent URL and thus I get a 404, whereas I would expect a redirect to http://other.server/foo.html
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!