Page 1 of 1

test.com to mysite.com/test/

Posted: Mon May 08, 2006 2:51 am
by shiznatix
Ok if I have the domain:

http://www.mywebsite.com

and I just registered the domain:

http://www.crazyhorse.com

but I only have 1 server. I want http://www.mywebsite.com to point to the main server but I want the url http://www.crazyhorse.com to actually be http://www.mywebsite.com/crazy/ so instead of typing that last url there in I just type in http://www.crazyhorse.com.

How do I do this?

Posted: Mon May 08, 2006 4:12 am
by Christopher
For Apache you would use the <VirtualHost> directive. But for lighttpd so you would have to look at the docs for simple-vhost.

Posted: Mon May 08, 2006 7:41 am
by Chris Corbyn
I do this lots using <Virtualhost> in apache. Because the HTTP 1.1 specification says that HOST headers should be sent with a HTTP request I imagine that most HTTPd servers can do the same thing anyway since that's all that gets checked ;)

Posted: Mon May 08, 2006 8:49 am
by Oren
I believe you can do that with your admin panel (if you have one).

Posted: Mon May 08, 2006 3:32 pm
by RobertGonzalez
My domain registrar offers this in their domain name management panel. They call it URL forwarding. You might be able to do what you are asking within your domain name profile.

Posted: Tue May 09, 2006 6:32 am
by shiznatix
thanks kids, ill take a look at these solutions