Koozali.org: home of the SME Server

redirect from i-bay to primary

Offline gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
redirect from i-bay to primary
« on: May 25, 2007, 07:26:49 PM »
I first installed phpgedview in an ibay called genealogy but when i needed it to integrate with my joomla (in the primary ibay) it didn't work. So now i have copied al the files from genealogy into a subdir phpgedview directly under the html dir of my primary ibay. The integration with joomla works fine now.

Now i want searchbots that still are looking to the genealogy ibay to redirect to the subdir phpgedview of my primary ibay.

So far i've done the following
Quote
db accounts setprop genealogy AllowOverride All

and following that
Quote
expand-template /etc/httpd/conf/httpd.conf
/etc/rc.d/rc7.d/S86httpd-e-smith restart


then i've edited .htaccess of the genealogy ibay and put in the following
Quote
Redirect permanent / http://www.gixmo.nl/phpgedview/

but it doesn't work like i want to.
When i point my browser to http://www.gixmo.nl/genealogy it is redirected to http://www.gixmo.nl/phpgedview/genealogy but i want it to go to http://www.gixmo.nl/phpgedview/
How can i make sure it works like i want to.

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
redirect from i-bay to primary
« Reply #1 on: May 25, 2007, 08:17:14 PM »
You can add a redirect function to your index file.
for html:
Code: [Select]

<HEAD><!-- Send users to the new location. -->
<TITLE>redirect</TITLE>
<META HTTP-EQUIV="refresh" CONTENT="0;URL=http://www.gixmo.nl/phpgedview">
</HEAD>


Craig

Offline gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
redirect from i-bay to primary
« Reply #2 on: May 26, 2007, 01:27:40 PM »
IThanks for the tip but i want a more clean way to do this, also with a redirect in the html code it only works if that dir is accessed, i want a more smouth way so that apache itself wil redirect requests to the right dir.

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
redirect from i-bay to primary
« Reply #3 on: May 26, 2007, 04:09:29 PM »
Read the templating instructions in the manual.  This is a very good example of why to install webapps in /opt.  Your options are not as versatile when using ibays.

If you want to see these templates in action download the src of one of dungogs php apps (they install in /opt) and look at templates for apache used in the package.

Craig