| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Removing the customer directory | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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...
|
|||||||
#2
|
|||||||
|
|||||||
![]() 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 ![]()
__________________
Mod King |
|||||||
#3
|
|||||||
|
|||||||
![]() Where would one find top.inc.php ? I've done a search of the xcart dir and can't find it.
|
|||||||
#4
|
|||||||
|
|||||||
![]() 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
__________________
Mod King |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
|
|||||||
#6
|
|||||||
|
|||||||
![]() Oh that is why, I'm running 3.5.7
the file structure changed alot between those two.
__________________
Mod King |
|||||||
#7
|
|||||||
|
|||||||
![]() 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! |
|||||||
#8
|
|||||||||
|
|||||||||
![]() 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
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() |
|||||||||
#10
|
|||||||
|
|||||||
![]() 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 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|