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 want to redirect my domain for to a URL like .

I don't have any host I just have a domain.

How could I do it?

share|improve this question
What Web server are you using? Do you want to do it in a specific app? Programming language used? Please consider adding some more details in your question. – user1301428 May 9 '14 at 12:36
up vote 0 down vote accepted

Well there are a couple ways you could do this. If you purchased your domain from a registrar you can put forwarding rules against it. This would depend on the registrar you use.

You could also do this with a script if you want. A method could be to make an index.php file on with something like:

<?php header ('Location:'); ?>

So when someone visits your index script will kick in and redirect them to whichever URL you specify.

EDIT: You say you don't have any host. If you don't have a web server which your website is pointing at then obviosuly you have no place to load scripts. You would have to do this through your registrar.

share|improve this answer

A domain points to an IP address, which you can change to anything you want. Alternatively, you can make a domain point to another domain. In order to point to a specific page on a website, you need a hostingprovider and a script. If that website will automatically navigate to that specific page when it is being called from the domain level (example: will automatically load, then you can add a CNAME entry for your domain and point it to

Note that when people visit, they will see their browser change to and then to

If you only want to do this for yourself, not for others, you can simply edit your hostsfile, and you don't even need to own the domain, but its unlikely that you want this. I only mention it for the sake of being thorough.

So what you need to do is access the control panel of your domain to set the settings, or if you don't have any, contact the person who has registered your domain and ask them to set it for you. Your domain registrar can always help you making these changes.

share|improve this answer

My answer depends on whether you can set DNS for the domain yourself in the admin panel of the provider of the domain.

As someone here suggested, you can use a CNAME to redirect the domain to another domain. That probably won't work, as you want to redirect to a specific page or path on that domain. In that case, you want to use the URL setting in the DNS admin. This will redirect your domain to a specific URL.

Maybe your domain host even provides CURL. This creates a solution where you see your domain name in the address bar of the browser, but underneath the page you redirect to is loaded. This is done using an iframe, probably depending on javascript. I wouldn't use it, but for some solutions it might work out and just do what you want.

This solution doesn't require PHP or any other language. Those solutions won't work for you, because they require hosting!

share|improve this answer

You cant do this if you don't have a web-hosting service.

Domain name redirection

If you have a domain (e.g., usually the domain service provides a control panel where you can associate an IP_address with, for example,

However the web-server at that IP address is probably a shared web-server that supports multiple domains and so it looks for a "HOST" header in the HTTP data to decide which website to serve up. A web-browser will put HOST: rather than HOST: that you want. So this is insufficient.

URL path addition

To redirect from to requires a web-server to issue a redirection response that includes the /something.

share|improve this answer

You must log in to answer this question.

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