For personal uses, I need to redirect a remote directory on a website to a local directory. I'm nearly sure I have to put this stuff into the windows Host file. I'd like to do something like:
#Local remote
mywebsite.com/directory localhost/directory
But I'd like to keep access to mywebsite.com/whatever
where whatever
is different of directory
.
Is there a way to do that or do I need to use a browser plugin ?
Thanks.
hosts file will only allow you to set IP addresses for certain host names. It will not help you here. Browser plugin seems overkill here, but it's possible. You could try to find a HTTP proxy that allows you to change the requests the way you want to.
In any case this will require some external application/plugin.