![]() |
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...
|
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 :) |
Where would one find top.inc.php ? I've done a search of the xcart dir and can't find it.
|
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 |
Quote:
|
Oh that is why, I'm running 3.5.7
the file structure changed alot between those two. |
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! |
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 |
|
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.