Koozali.org: home of the SME Server

Creating an I-bay for a vitural domain

Offline henry44

  • ***
  • 124
  • +0/-0
Creating an I-bay for a vitural domain
« on: March 19, 2006, 07:17:22 AM »
I have 2 domains, www.mrlistersir.com and a vitural domain www.bentonbsa.org.
I have an i-bay BALOO that can be reached by www.mrlistersir.com/baloo
and would like to be able to reach it through www.bentonbsa.org/baloo.

I've read the manual and serched the forums with no satisfaction.

How do I link the baloo i-bay to the vitural domain www.bentonbsa.org?
......
Thanks for your help,
Henry

gardnc

Creating an I-bay for a vitural domain
« Reply #1 on: March 21, 2006, 12:34:48 AM »
I've always found it easier to never use the primary domain web site but create a spe4cific Ibay for each web site.  Then point the domain (primary or otherwise) to the ibay of my choice.  Makes what you want to do possible and makes it much easier to make a quick major change to the primary domain web.

Offline henry44

  • ***
  • 124
  • +0/-0
Creating an I-bay for a vitural domain
« Reply #2 on: March 21, 2006, 02:00:10 AM »
That is what I've done. How do I link the second i-bay to the first i=bay?

The bentonbsa.org domain points to an index file in an i-bay called bentonbsa.
The baloo info is in an i-bay named baloo.
What I want to be able to do is to access the baloo i-bay from the bentonbsa.org link by going to www.bentonbsa.org/baloo, just like I can do by going to www.mrlistersir.com/baloo.

I can't seem to make this happen. Any real specific help?
......
Thanks for your help,
Henry

gardnc

Creating an I-bay for a vitural domain
« Reply #3 on: March 21, 2006, 12:35:59 PM »
If I'm clear on this, you want to type in http://www.bentonbsa.org and be redirected to  ibay folder mrlistersir/baloo.  

If so then you are trying to redirect to a folder in an ibay not just the ibay.  You will need some code to do that.  You can modify the Apache config I think or possibly do something in an .htconfig but I'm not sure of the procedures.

An easy solution is to make the index page an index.php page in ibay bentonbsa that contains just:

echo "<script>self.location = 'http://www.mrlistersir/baloo';</script>";

This will have the possibly unfortunately effect of changing the url displayed in the browser.

Offline henry44

  • ***
  • 124
  • +0/-0
Creating an I-bay for a vitural domain
« Reply #4 on: March 21, 2006, 05:50:02 PM »
No. What I want to do is the following.

type in

www.bentonbsa.org/baloo and be directed to the index page of the baloo i-bay.


just like when I type in www.mrlistersir.com/baloo I am directed to the index page of the baloo i-bay.

See the difference?

I already have the www.bentonbsa.org site working as desired. I just want to link to other i-bays the way I can from the primary domain.

Thanks for your help....................
......
Thanks for your help,
Henry

gardnc

Creating an I-bay for a vitural domain
« Reply #5 on: March 21, 2006, 07:53:11 PM »
OK, just about the same solution.  Make a folder in bentonbsa ibay called baloo and put an index.php with:

<?php
echo "<script>self.location = 'http://www.mrlistersir/baloo';</script>";
?>

Be sure the page has an extension of php.  The index page is always called as the default.  So when you go to http://www.bentonbsa.org/baloo the browser will grap the index.php, process it and send a redirect to the browser.

Offline henry44

  • ***
  • 124
  • +0/-0
Creating an I-bay for a vitural domain
« Reply #6 on: March 22, 2006, 06:32:28 AM »
Yippeee!!!

Worked like a charm........

Thanks for the help. Now I can use this template to do other stuff.

Thanks again.

Henry
......
Thanks for your help,
Henry