View previous topic :: View next topic |
Was this helpful? |
Yes |
|
40% |
[ 2 ] |
A little |
|
20% |
[ 1 ] |
No |
|
40% |
[ 2 ] |
|
Total Votes : 5 |
|
Author |
Message |
k1ll3rdr4g0n -
Joined: 04 Jul 2004 Posts: 609
|
Posted: Sun Sep 19, 2004 4:26 am Post subject: Running Multiple Sites w/o redirection |
|
|
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 |
|
|
Kittenstomper2 -
Joined: 06 Jul 2004 Posts: 77
|
Posted: Mon Feb 14, 2005 8:17 pm Post subject: |
|
|
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 |
|
|
|