Changing your Zen Cart Admin Directory name

Changing the directory name "admin" to something harder to guess is a very important part of maintaining your cart's security. And it's not hard to do. Here are the step by step instructions:

This page creates a "Random" admin name every time you load it. The name consists of a series of 12 upper and lower case numbers and digits, excluding a handful of characters such as zero, upper case Q and upper case O (for legibility).

Your randomly chosen admin name is: R5y6zVGKVF45
  1. Edit the file admin/includes/configure.php. Make these two changes:
    1. Change
      define('DIR_WS_ADMIN', '/admin/'); to
      define('DIR_WS_ADMIN', '/R5y6zVGKVF45/');
    2. Change
      define('DIR_WS_HTTPS_ADMIN', '/admin/'); to
      define('DIR_WS_HTTPS_ADMIN', '/R5y6zVGKVF45/');
    3. Change
      define('DIR_FS_ADMIN', '/home/slothe/public_html/admin/'); to
      define('DIR_FS_ADMIN', '/home/slothe/public_html/R5y6zVGKVF45/');

  2. Rename your admin directory using your file transfer software to R5y6zVGKVF45

  3. Update all your bookmarks, favorites, etc. to use the new URL to your admin panel, http://your-store.com/R5y6zVGKVF45
If your shop is in a subdirectory, the same steps apply. Suppose the subdirectory is called "store".
  1. Change
    define('DIR_WS_ADMIN', '/store/admin/'); to
    define('DIR_WS_ADMIN', '/store/R5y6zVGKVF45/');
  2. Change
    define('DIR_WS_HTTPS_ADMIN', '/store/admin/'); to
    define('DIR_WS_HTTPS_ADMIN', '/store/R5y6zVGKVF45/');
  3. Change
    define('DIR_FS_ADMIN', '/home/slothe/public_html/store/admin/'); to
    define('DIR_FS_ADMIN', '/home/slothe/public_html/store/R5y6zVGKVF45/');
Terms | Privacy | SiteMap | Newsletter | Contact Me | Contents © 2003-2010 That Software Guy, Inc.