[Hampshire] apache redirection problem

Top Page

Reply to this message
Author: Peter Alefounder
Date:  
To: hampshire
Subject: [Hampshire] apache redirection problem

If I use a web browser to look at a local html or pdf file, is it
possible to set things up so that a link to an external web site is
redirected to the local file system?

I have tried a .htaccess file along these lines:

RewriteEngine on
Redirect http://external.site.com/filename.html file:///home/pra/abc/filename.html

and also

RewriteEngine on
RedirectMatch http://external\.site\.com file:///home/pra/abc

but in all cases I just get the error message
"external.site.com" could not be found.

I have tried putting the .htaccess file in /home/pra/abc and in
/home/pra/public_html which is the usual place apache would look
for local files. I am not sure where it should go in this case.

I am using apache 1.3.34-4.1 on Debian 4.0. This is an isolated
system with no internet connection.

Peter Alefounder.