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.

Simply put, I want to redirect uk.wikipedia.org to en.wikipedia.org.

I put this in the hosts file on windows, saved it, and flushed the DNS cache:

91.198.174.225      uk.wikipedia.org

But when I try to visit uk.wikipedia.org, I get a timeout error, and it's not redirecting me to en.wikipedia.org.

Help?

It's not a web browser cache issue, as I've tried with multiple browsers (Firefox, Chrome)

share|improve this question

1 Answer 1

up vote 2 down vote accepted

When you do a dig uk.wikipedia.org you also get 91.198.174.225, same as dig en.wikipedia.org. So probably all pages are actually accessed through the same IP. The webserver figures out which page to serve to you depending on the Host field in the HTTP-Request headers. (See apache's virtual hosts for example). To change which page is requested you'd have to modify the Http headers. This is probably best done with a browser plugin of some sort.

Edit: There doesn't seem to be a premade tool for changing http headers only on certain domains. But maybe you could use this: Firefox Redirector?

share|improve this answer
    
Thanks! That would explain a lot. –  vemacs Jan 14 '13 at 3:14

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.