Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know you can use the hosts file to redirect requests from a certain domain to a different domain (adding google.com would make all requests from google.com instead go to I want to know if there is a way to do this only on certain directories instead of the whole domain. For example, lets say I only want requests from google.com/search to go to, but I want requests to other parts of google to go normally, to the website. Can I do this with a hosts file? If not, can I do it with a proxy? If so, I would like specific directions on how to do it.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.