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

I was wondering how to make a simple redirection, I've got WAMP installed on my computer and I wish I could do that: When I go to it redirects to I did this in the httpd.conf file, but it isn't working.

It seems to work now, but only when I go to localhost. However, what I want is that when I go to it goes to, and I can't do that.

Here is my conf :

   <VirtualHost *:80 >

    Redirect permanent /

share|improve this question
Can you please add the non-working configuration you tried so that we have a starting point? – Shi Oct 14 '12 at 8:34
Yes, thank you, done. – Meds Oct 14 '12 at 8:47

I do not know your intention, but you can make your configuration work by claiming that your computer actually is

For this to do you need to edit your hosts file and add the following line:

Right now in your configuration, your webbrowser asks a DNS server for the IP of and the DNS server replies with an external IP address. Due to this, your local server never sees the request so it never acts on it.

If you want this to work across your network you should consider using a HTTP proxy rather than a webserver.

share|improve this answer

You must log in to answer this question.

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