Jump to content

redirect help


Poda

Recommended Posts

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?

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.