Redirect to a domain and to show it in address bar

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:

Now I've been asked the following:

if a user writes in the address bar: my web contents ( have to load, and also 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 and redirect to but that won't show 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 server. Hope this helps :)

You can do this using frame based forwarding, which some hosting providers will offer. If not, create a single index.html in the host as follows (edit src url).

<head><title>Insert Title Here</title></head> 
<frameset rows="0" frameborder="NO" border="0" framespacing="0"> 
<frame name="mainframe" src="" scrolling="AUTO" marginwidth="0" marginheight="0" frameborder="NO"> 
<noframes><body bgcolor="#FFFFFF" text="#000000"></body></noframes> 

It's best to only use this as a temporary measure, until you can point the domain at the intended server. The solution isn't ideal, and won't work well with search engines.

You need to change your server to route requests for to the right website (I'm assuming from your use of sub-domains the server is hosting more than one website)

Then you need to change the DNS of to point to your server.

Exactly how you do this depends on the systems you are using.

Need Your Help

JSON-LD normalization - ignore JSON nesting

geojson json-ld

I'm working on JSON-LD serialization, and ideally I would like to have a @context which I can add to the existing GeoJSON output (together with some @ids and @types), so that both the Turtle output...

Disable scrolling in Osmdroid map

java android maps osmdroid openstreetmap

I have an Osmdroid MapView. Even though I have set