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 😉
I’m accesing my web using this url:
http://subdomain.myserver.com/folder/index.php
Now I’ve been asked the following:
if a user writes in the address bar:
http://www.whatever.com
my web contents (http://subdomain.myserver.com/folder/index.php) have to load, and also http://www.whatever.com has to show in the address bar.
(Please note that it’s all legal, both web spaces have been purchased.)
In order to do what they ask me I thought in detecting the host http://www.whatever.com and redirect to subdomain.myserver.com/folder/index.php but that won’t show http://www.whatever.com in the address bar, will it?
I guess I’m missing something like dns or something similar. Can you please guide me here?
Thanks a lot!
Hey if you just redirect to the other page it will show the URL which you redirect to. You simply need to add an DNS record to the domain with the IP of the subdomain.myserver.com/folder/index.php server.
Hope this helps 🙂