Web Hosting Talk







View Full Version : subdomain to url


ntwaddel
07-11-2002, 12:42 PM
im wondering how to setup a sub domain to a url type thing. Do i need to make a virtualhost, or is there some kind of command to do it.

like for example if i wanted to make http://forum.example.com go to http://www.example.com/forum

im running redhat linux w/ apache 1.3.x

elsmore1
07-11-2002, 02:43 PM
you can do it with either Mod_Rewrite or the Redirect configuration directive. No need for a separate virutalHost, as long as you can ServerAlias the required hostnames into the current VirtualHost container for the domain.

Originally posted by ntwaddel
im wondering how to setup a sub domain to a url type thing. Do i need to make a virtualhost, or is there some kind of command to do it.

like for example if i wanted to make http://forum.example.com go to http://www.example.com/forum

im running redhat linux w/ apache 1.3.x