httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mimiko <vbv...@gmail.com>
Subject Re: [users@httpd] Redirect to other server if file/directory does not exists.
Date Tue, 05 Aug 2014 14:00:47 GMT
On 05.08.2014 15:40, Igor Cicimov wrote:
> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
> RewriteRule ^/(.*)$ http://other-server%{REQUEST_URI}
> <http://other-server/%1> [P,L]

This worked. The problem alsa was because I was calling:
httpd://server1/ and rewrite where calling httpd://server2/index.php
But index.php was not present on the second server. I thought that 
server2 would be called like server1 without autoappending index.php.

-- 
Mimiko desu.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message