View previous topic :: View next topic |
Author |
Message |
emosucks -
Joined: 02 Aug 2003 Posts: 5
|
Posted: Sat Aug 02, 2003 4:15 am Post subject: Multiple sites. |
|
|
Hello,
I was wondering if there is a version that will allow us to host multiple sites...
ex:
www.blabla.com - when enterd will point to the /site1 folder
www.blabla2.com - when enterd will point to the /site2 folder
I think this would be amazing.. if there isnt.. do you know of a way ? :P |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Sat Aug 02, 2003 4:25 am Post subject: |
|
|
Its your lucky day , their is a way but you have to have PHP installed , I have a bunch of sub domains right now in different folders on my server, you can use your-site.com instead of a sub domain. sub.my-site.com. Enjoy the script and thank Blue Dog for it, He made it.
I have a copy of PHP ver 4.3.1 the one without the bugs, contact me if you need it. 8)
My hosted sites
-------------------------------------------------------------------------------------
http://offspring.no-ip.com
Powered by e107
http://offspring.dynu.com
A File Compression Chart
http://offspring.zapto.org
A Basic HTML Tutorial
http://bbs.offspringvideos.com
My phpBB2 Forum
-------------------------------------------------------------------------------------
MULTIPLE DOMAIN SCRIPT ! 8)
http://www.aprelium.com/forum/viewtopic.php?t=1081 _________________ This web server is the best ! |
|
Back to top |
|
|
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Sat Aug 02, 2003 6:00 am Post subject: |
|
|
I have a perl script to do the same...let me know if your interested |
|
Back to top |
|
|
cad3 -
Joined: 12 Jun 2003 Posts: 25 Location: Hellhole City
|
Posted: Sat Aug 02, 2003 6:06 am Post subject: |
|
|
os17 sorry 2 say dis
but that script is useless
emosucks probly wants to have 2 compltely different domains that act as if they was on 2 different computers
like like
mydomain.com/that would be uhhuh.com and act as if it was mydoman.com/that not jus a url fowardin service
the phpscript that i hav been instructed 2 use many times
does not do that it jus redirects u while revealing the name of the root folder
like mydomain.com/that would appear as uhhuh.com/that
:cry: dat suks _________________ Dark Dragon
CAD3|net |
|
Back to top |
|
|
emosucks -
Joined: 02 Aug 2003 Posts: 5
|
Posted: Sat Aug 02, 2003 3:37 pm Post subject: Thanks!! |
|
|
thanks for the quick feed back guys..
I got it working with the following tho if any of you are interested..
Code: | <?php
$HOST = $_SERVER['SERVER_NAME'];
if ($HOST == "experimentalsadness.com/") {
header("Location : main.php");
exit;
}
if ($HOST == "www.experimentalsadness.com") {
header("Location : main.php");
exit;
}
if ($HOST == "*.*.*.*") {
header("Location : squares/index.htm");
exit;
}
$HOST = $_SERVER['HTTP_REFERER'];
if ($HOST == "emosucks.net") {
header("Location : squares/index.html");
exit;
}
if ($HOST == "www.emosucks.net") {
header("Location : squares/index.html");
exit;
}
//... so on
//else show default page
else {
header("Location : index2.html");
exit;
}
?>
|
|
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Sat Aug 02, 2003 8:29 pm Post subject: |
|
|
This script does not redirect you to a different folder , it can or cannot.
If you put just /dir/ it will redirect you to http://your-domain.com/dir/ but if you use
/dir/index.html it will just show your-domain.com , this script works and im proud to be using it on my web site. 8) _________________ This web server is the best ! |
|
Back to top |
|
|
|