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
https://forums.phpfreaks.com/topic/56659-redirect-help/
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
https://forums.phpfreaks.com/topic/56659-redirect-help/#findComment-280440
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.