Running Multiple Sites w/o redirection

 
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials
View previous topic :: View next topic  

Was this helpful?
Yes
40%
 40%  [ 2 ]
A little
20%
 20%  [ 1 ]
No
40%
 40%  [ 2 ]
Total Votes : 5

Author Message
k1ll3rdr4g0n
-


Joined: 04 Jul 2004
Posts: 609

PostPosted: Sun Sep 19, 2004 4:26 am    Post subject: Running Multiple Sites w/o redirection Reply with quote

Based mostly off BlueDog's script.
Code:

<?
if ($_SERVER['HTTP_HOST'] == "forum.yoursite.com") {

//forward to appropriate page
include("http://www.yoursite.com/forum/index.php");
exit;

}
else {

header("Location: index1.php");
exit;
}

?>

This can make it so http://forum.yoursite.com will point to http://www.yoursite.com/forum/index.php

And it will displayin their browser http://forum.yoursite.com.
_________________
Back to top View user's profile Send private message AIM Address
Kittenstomper2
-


Joined: 06 Jul 2004
Posts: 77

PostPosted: Mon Feb 14, 2005 8:17 pm    Post subject: Reply with quote

Quote:
Based mostly off BlueDog's script.
Code:

<?
if ($_SERVER['HTTP_HOST'] == "forum.yoursite.com") {

//forward to appropriate page
include("http://www.yoursite.com/forum/index.php");
exit;

}
else {

header("Location: index1.php");
exit;
}

?>


This can make it so http://forum.yoursite.com will point to http://www.yoursite.com/forum/index.php

And it will displayin their browser http://forum.yoursite.com.


this looks cool, but 1st off where does that tidbit of code go if i want to make a folder called downloads or something, then make the URL downloads.mysite.com

that code just goes in the index.??? file of whatever it is ya want to appear as replacing the WWW correct?

was going to ask this in general questions since this is a pretty old post...
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group