Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

if user type in address bar i want user to redirect to my affiliate link i tried many things but nothing helped me . Any Help Thanks in advance.

share|improve this question

closed as unclear what you're asking by Ƭᴇcʜιᴇ007, nc4pk, Moses, Carl B, Mokubai Nov 9 '13 at 7:19

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you asking for this behavior on computers (browsers) in your control? Or any one – Dave Sep 26 '13 at 15:57
it can be any thing redirection through browser extention or windows hostfile. – O-mkar Sep 26 '13 at 16:00
The hosty file (on windows and on other OS's) works on host names. Thus that would give the same IP for as for – Hennes Sep 26 '13 at 16:01
would you mind responding to your OP to let us know if my answer below worked for you or not? – Richie086 Oct 3 '13 at 6:36

Here is how to do it.

  1. Create a file called index.html and put it in the root of the directory that is hosting
  2. In index.html, enter the following code



<meta http-equiv="refresh" content="0,">





this will cause anyone who goes to to be redirected automatically to

You can change the amount of time it takes to redirect the person by changing the content="0 to any non zero value.

share|improve this answer
I think he's aiming to do it on the client side... – Ƭᴇcʜιᴇ007 Sep 26 '13 at 16:31
What would be the purpose of doing this client side? Why would someone run something client side to redirect themselfs to some affiliate site when they visited his site? Just trying to understand why the redirect solution I posted would not be preferable. – Richie086 Sep 27 '13 at 17:52
I fully agree, but you'll have to bug the OP for that clarification. ;) – Ƭᴇcʜιᴇ007 Sep 27 '13 at 20:47

Not the answer you're looking for? Browse other questions tagged .