title: Redirect to a domain and to show it in address bar
body: <p>I'm very new to url redirect so I'm probably going to ask something very dumb. Sorry in advance, I rather ask you than put myself in a ridiculous situation at school ;) </p>
  
  <p>I'm accesing my web using this url: 
  <a href="http://subdomain.myserver.com/folder/index.php" rel="nofollow">http://subdomain.myserver.com/folder/index.php</a></p>
  
  <p>Now I've been asked the following: </p>
  
  <p>if a user writes in the address bar: 
  www.whatever.com 
  my web contents (http://subdomain.myserver.com/folder/index.php) have to load,  and also  www.whatever.com has to show in the address bar. </p>
  
  <p>(Please note that it's all legal, both web spaces have been purchased.) </p>
  
  <p>In order to do what they ask me I thought in detecting the host www.whatever.com and redirect to subdomain.myserver.com/folder/index.php but that won't show www.whatever.com  in the address bar, will it?</p>
  
  <p>I guess I'm missing something like dns or something similar. Can you please guide me here? </p>
  
  <p>Thanks a lot!</p>