Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Removing the customer directory

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-15-2004, 08:47 PM
 
PCGear PCGear is offline
 

Member
  
Join Date: Oct 2003
Posts: 17
 

Default 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...
Reply With Quote
  #2  
Old 05-15-2004, 08:52 PM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

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
Reply With Quote
  #3  
Old 05-15-2004, 09:08 PM
 
PCGear PCGear is offline
 

Member
  
Join Date: Oct 2003
Posts: 17
 

Default

Where would one find top.inc.php ? I've done a search of the xcart dir and can't find it.
Reply With Quote
  #4  
Old 05-15-2004, 09:59 PM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

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
Reply With Quote
  #5  
Old 05-15-2004, 10:13 PM
 
PCGear PCGear is offline
 

Member
  
Join Date: Oct 2003
Posts: 17
 

Default

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
Reply With Quote
  #6  
Old 05-15-2004, 10:42 PM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

Oh that is why, I'm running 3.5.7
the file structure changed alot between those two.
__________________
Mod King
Reply With Quote
  #7  
Old 06-01-2004, 01:36 PM
 
xcell67 xcell67 is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 149
 

Default

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!
Reply With Quote
  #8  
Old 06-02-2004, 05:46 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

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!
Reply With Quote
  #9  
Old 06-03-2004, 04:30 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

I think this should be the default.

www.domain.com/home.php is the customer front end.
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #10  
Old 06-03-2004, 08:14 AM
 
blue-dreamer blue-dreamer is offline
 

eXpert
  
Join Date: Dec 2002
Location: Northampton UK
Posts: 213
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:00 AM.

   

 
X-Cart forums © 2001-2020