The Un-Official Proxomitron Forum

Full Version: How to use $RDIR to redirect to a local file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Guest

I want to redirect request for http://www.hyperigo.com/favicon.ico to a local file C:\favicon\hyperigo.ico

I tried a URL filter like this:
Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "URL: Hyperigo icon (out) [wpw]"
URL = "*hyperigo.com/favicon.ico$RDIR(http://file//C:/favicon/hyperigo.ico)"

But proxo failed to load the file and give an error like this
Quote:Host Name Lookup Failed
The Proxomitron couldn't find the site named...
C
Check that the name is correct. If so, the site may have changed or may no longer exist.


What's the correct way to write the path to a local file ?
Using Drag & Drop i open a file in firefox, and his address is in this format:
file:///C:/Documents and Settings/file.TXT

Play with that and please register before posting...
Using file:// protocol is not good. We had a relevant discussion here.

You'd better put the local file under proxomitron html folder and use http://local.ptron/hyperigo.ico to refer to it.
Reference URL's