The Un-Official Proxomitron Forum
How to use $RDIR to redirect to a local file - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: How to use $RDIR to redirect to a local file (/showthread.php?tid=1142)



How to use $RDIR to redirect to a local file - Guest - Nov. 04, 2008 10:41 AM

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 ?


RE: How to use $RDIR to redirect to a local file - lnminente - Nov. 04, 2008 12:28 PM

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...


RE: How to use $RDIR to redirect to a local file - whenever - Nov. 04, 2008 01:28 PM

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.