subdomain for every site

Do you have suggestions how to improve myLounge Redirection? Want to give a feedback? Or even found a bug? Then please post in here.

Moderator: Scooby

subdomain for every site

Postby Julien » Sat Feb 22, 2003 6:55 pm

I think it would be great to be able to redirect the main page of each domain of the script to a subdirectory, what do you think of it ?
Julien
Newbie
Newbie
 
Posts: 1
Joined: Mon Feb 17, 2003 2:44 pm

Postby andelal » Sun Feb 23, 2003 9:30 am

You could do this yourself.
Find the lines:
Code: Select all
// In case the main domain is called, redirect to the startpage and exit
if($subhost=="$maindomain" || $subhost=="www.$maindomain") {
   header("Location: http://www.$maindomain/$startpage");
   exit;
   }

And change it to something like:
Code: Select all
// In case the main domain is called, redirect to the startpage and exit
if($subhost=="firstdomain.com" || $subhost=="www.firstdomain.com") {
   header("Location: http://www.$maindomain/firstdirectory");
   exit;
   }
if($subhost=="seconddomain.com" || $subhost=="www.seconddomain.com") {
   header("Location: http://www.$maindomain/seconddirectory");
   exit;
   }

And so on...

Alex
User avatar
andelal
Site Admin
Site Admin
 
Posts: 479
Joined: Tue Jan 07, 2003 8:53 pm
Location: Vienna/Austria/Europe


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 7 guests

cron