Poda Posted June 22, 2007 Share Posted June 22, 2007 Hi, guys. I can't for the life of me figure this redirecting stuff out. Basically, I have 2 domains: http://duke3d.org and http://uschampionshipvball.com. Currently, they both link to the root folder (the public_html) folder. I simply want http://duke3d.org to go to public_html/forum and http://uschampionshipvball.com to go to public_html/vball. Any advice? Quote Link to comment Share on other sites More sharing options...
steviewdr Posted June 22, 2007 Share Posted June 22, 2007 You need to look into vhosts (virtual hosts). It is very very simple as long as you use vhosts. Have a read of this (linux): http://wiki.kartbuilding.net/index.php/Apache_2_%26_SSL_-_PHP4_-_MySQL_4.1 Here is a sample of the vhost code: <VirtualHost *:80> ServerAdmin email ServerName duke3d.org DocumentRoot /home/user/public_html/forum CustomLog /var/log/apache2/access.log combined ErrorLog /var/log/apache2/error.log Loglevel warn <Directory /> Options FollowSymLinks Indexes MultiViews AllowOverride All </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin email ServerName uschampionshipvball.com DocumentRoot /home/user/public_html/vball CustomLog /var/log/apache2/access.log combined ErrorLog /var/log/apache2/error.log Loglevel warn <Directory /> Options FollowSymLinks Indexes MultiViews AllowOverride All </Directory> </VirtualHost> Google if you get stuck. -steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.