Forums / General Questions / Admin Folder Rename Not Working for me

Admin Folder Rename Not Working for me

Locked

Started by j_smith on 25 Feb 2008, 2:18 AM · Views: 1,527

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Feb 2008, 2:18 AM
#1
j_smith avatar

j_smith

New Zenner

Join Date:
Feb 2008
Posts:
11
Plugin Contributions:
0

Admin Folder Rename Not Working for me

The instructions for renaming a Zen Cart's admin folder, as shown below, don't work for my setup, even after clearing the cache of my browser.

Has anyone else encountered this problem?

2. Rename your /admin folder

It is recommended for additional security that you rename your admin directory after installation. This way, it will be significantly harder for hackers to find your admin area or attempt any attack on breaking into it.

(Before making the following changes, make sure to have a current backup of your files and your database.)

A - Open your admin/includes/configure.php, using a simple text editor like notepad. Change all instances of admin to your chosen new admin folder-name. For maximum security, you may want to consider that new folder name should include numbers and a combination of upper and lower case letters. The longer you make this folder's name the more secure it will be. Make sure you leave all the / intact.

Change this section:
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

And this section:
define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');

B - Find your Zen Cart™ /admin/ directory, using your FTP software or your webhost File Manager. Rename the directory to match the settings you just made in step A.

C - To login to your admin system you will now have to visit a new URL that matches the new name used in steps A and B above. For example instead of visiting http://www.example.com/admin/ visit http://www.example.com/NeW_NamE4u/. Use of SSL is highly recommended to protect you and your customers' information. To protect the new admin folder name from packet sniffers, use https in the example link above (this of course depends on your server having an SSL certificate installed).

D - You should also protect your admin area by using an .htaccess file similar to the one shown below, and placing it into /admin/includes. This should already exist in Zen Cart™ versions 1.2.7 and greater.

25 Feb 2008, 2:32 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Admin Folder Rename Not Working for me

The instructions for renaming a Zen Cart's admin folder, as shown below, don't work for my setup
You are not completing this correctly then...

It only responds to what it is instructed to

Zen-Venom Get Bitten

25 Feb 2008, 2:57 AM
#3
j_smith avatar

j_smith

New Zenner

Join Date:
Feb 2008
Posts:
11
Plugin Contributions:
0

Re: Admin Folder Rename Not Working for me

kobra:

You are not completing this correctly then...

It only responds to what it is instructed to

Yup, sorry. - Missed out the folder rename :oops:.