Forum Moderators: bakedjake
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
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