X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Removing the customer directory (https://forum.x-cart.com/showthread.php?t=7592)

PCGear 05-15-2004 08:47 PM

Removing the customer directory
 
Is there anyway to run xcart from the web root? Forwarding to a sub dir is bad for google and allows people to guess which software you are using...

Mod King 05-15-2004 08:52 PM

It would be tough, but i think possible

You could try changing the customer directory defintion in top.inc.php
I believe thats the file with it anyway, i haven't looked in a while.

I think all the customer files could function since i believe they either used ./
or xcart_dir."blah blah"

so the includes *shouldn't* screw up
you could always try it and let us know :)

PCGear 05-15-2004 09:08 PM

Where would one find top.inc.php ? I've done a search of the xcart dir and can't find it.

Mod King 05-15-2004 09:59 PM

hmm, what version of x-cart are you running?
with the version i have there's top.inc.php in the root directory.
The same one that has config.php in it

PCGear 05-15-2004 10:13 PM

Quote:

Originally Posted by Mod King
hmm, what version of x-cart are you running?
with the version i have there's top.inc.php in the root directory.
The same one that has config.php in it

X-Cart version 3.4.6-3.4.7

Mod King 05-15-2004 10:42 PM

Oh that is why, I'm running 3.5.7
the file structure changed alot between those two.

xcell67 06-01-2004 01:36 PM

I moved all the contents from /customer into the web root and in top.inc.php, I changed

define ('DIR_CUSTOMER', '/customer');

to

define ('DIR_CUSTOMER', '');

Everything seems to work ok right not but there is a slight problem, in /customer there is an index.php and in the root there is an index.php. When I moved the files from /customer to the root, I decided not to replaces the root's index.php with the /customer's index.php.

Should I keep the root index.php or replace it with the customer's php?

Thanks!

BCSE 06-02-2004 05:46 PM

Doesn't really matter which index.php you use. The customer one just redirects you to home.php and the root one basically redirects you to .DIR_CUSTOMER."/home.php And since your DIR_CUSTOMER is '' both redirects would take you to the same place having either one of them in the root.

Carrie

ETInteractive.com 06-03-2004 04:30 AM

I think this should be the default.

www.domain.com/home.php is the customer front end.

blue-dreamer 06-03-2004 08:14 AM

It is quite straightforward. Upload everything in the xcart folder to your root directory.

In config.php change

$xcart_web_dir ="/xcart";

to

$xcart_web_dir ="";

This works for all my sites...

Your customer url is the www.mydomain/index.php and your admin is www.mydomain/admin/index.php


All times are GMT -8. The time now is 10:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.