Multiple sites.

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
emosucks
-


Joined: 02 Aug 2003
Posts: 5

PostPosted: Sat Aug 02, 2003 4:15 am    Post subject: Multiple sites. Reply with quote

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 View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Sat Aug 02, 2003 4:25 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Sat Aug 02, 2003 6:00 am    Post subject: Reply with quote

I have a perl script to do the same...let me know if your interested
Back to top View user's profile Send private message
cad3
-


Joined: 12 Jun 2003
Posts: 25
Location: Hellhole City

PostPosted: Sat Aug 02, 2003 6:06 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website AIM Address MSN Messenger
emosucks
-


Joined: 02 Aug 2003
Posts: 5

PostPosted: Sat Aug 02, 2003 3:37 pm    Post subject: Thanks!! Reply with quote

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 View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Sat Aug 02, 2003 8:29 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions 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