Forum Moderators: bakedjake

Message Too Old, No Replies

DocumentRoot change - Enxim/RH8

need help changing the document root of a website on my Ensim / RH8 server

         

Cameron32

11:16 pm on Mar 26, 2003 (gmt 0)

10+ Year Member



Hi All,

I've lurked around webmasterworld.com for a while and gleaned a lot of great information, but this is a problem that I haven't been able to find the answer to in the search.

I am running a linux RH8 server with Ensim webpliance and I want to change the document root of one of the IP based sites I am setting up. The shopping cart I'm using begins two directory levels deeper than the default document root of the site. Ex: www.widgets.com/store/customer/index.php

I have gone into the site's configuration file under /etc/httpd/conf/virtual/ and edited site## so that the following lines are changed:


DocumentRoot /home/virtual/site10/fst/var/www/html/store/customer

<Directory /home/virtual/site10/fst/var/www/html/store/customer/>

SetEnv SITE_HTMLROOT /home/virtual/site10/fst/var/www/html/store/customer


However, when I go to the domain, I do not get forwarded to the /store/customer/ directory but instead get the index page that is in the old /var/www/html/ document root.

I then tried just changing it in my .htaccess file by adding this line: DirectoryIndex /store/customer/index.php

That *does* redirect me to the contents of the /store/customer/index.php file, BUT in the process my .css file is missed (it's in /store/skin1/skin1.css) and the links to other areas of the cart (which are under /store/customer/) don't work because they are going to www.widgets.com/home.php?cat=XX instead of being called out of the store/customer/ dirctory.

I hope all that makes sense. In essence I just want it so that SE spiders and the general public believe they are just at www.widgets.com instead of in www.widgets.com/store/customer/home.php, etc...

Any ideas?

Thanks,
Cameron