So, I have a local application that makes a requests to an external web site like


I don't want to redirect all of files.website.com because it changes dynamically, I just want to redirect only /files/filename to another URL or host.

Is this possible? I know you can redirect an entire domain, such as with the hosts file.

Something I attempted was to use Telerik Fiddler, but the request doesn't even show up in fiddler, even without any filters.

  • 1
    does filename have an extension too? or can it be like: myfile.php or just myfile? Then you can use a php or html file as placeholder and put the command inside to redirect. Otherwise, you'll have to work with an .htaccess to redirect one specific filename. – LPChip May 25 '18 at 17:02
  • It has no filetyping, unfortunately. It's just a file on a webserver without any file type. Further note I am not hosting the file, it's on an external network – user2671497 May 25 '18 at 17:06

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.