Zen Cart Logo
Forums / General Questions / Links in Admin area don't work after admin folder rename

Links in Admin area don't work after admin folder rename

Locked

Views: 5,961

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
5 Sep 2006, 2:39 AM
#1
bhfruitcakeco avatar

bhfruitcakeco

New Zenner

Join Date:
Aug 2006
Posts:
22
Plugin Contributions:
0

Links in Admin area don't work after admin folder rename

Okay. I renamed my admin folder for security reasons following the instructions I found at the wiki. I changed everything labeled "admin" (but not ADMIN) to the folder's new name in the admin/includes/configure.php file. I can log into the admin area under it's new name, but all the links to customize the store still direct to the folder by it's original name, which means all I get is blank pages.

Obviously I'm missing something. Any suggestions?

5 Sep 2006, 2:46 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Links in Admin area don't work after admin folder rename

did you mistakenly edit some of the defines related to CATALOG ? You shouldn't touch those if you're renaming the admin...

5 Sep 2006, 4:01 PM
#3
bhfruitcakeco avatar

bhfruitcakeco

New Zenner

Join Date:
Aug 2006
Posts:
22
Plugin Contributions:
0

Re: Links in Admin area don't work after admin folder rename

I only changed the definitions for "DIR_WS_ADMIN", "DIR_WS_HTTPS_ADMIN", and "DIR_FS_ADMIN" to reflect the new folder name. I kept the slashes and everything, as instructed in the wiki.

If I change everything back to "admin" it works fine.

5 Sep 2006, 4:05 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Links in Admin area don't work after admin folder rename

So ... you ...

  1. edited the configure.php settings
    and
  2. actually renamed the admin folder to match ?
7 Sep 2006, 12:31 AM
#5
bhfruitcakeco avatar

bhfruitcakeco

New Zenner

Join Date:
Aug 2006
Posts:
22
Plugin Contributions:
0

Re: Links in Admin area don't work after admin folder rename

Yes, to both. I even tried again today to make sure. All the links in the renamed admin area are still directing to the old "admin" folder. It says so when I hover over the links, themselves. When I click them I get a blank page.

7 Sep 2006, 1:16 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Links in Admin area don't work after admin folder rename

The links are built from the configure.php settings.

ie:

  define('HTTP_SERVER', 'http://yoursite');
  define('HTTPS_SERVER', 'https://yoursite');
  define('ENABLE_SSL_ADMIN', 'false-or-true-depending-on-your-server');
  define('DIR_WS_ADMIN', '/secretadmin/');
  define('DIR_WS_HTTPS_ADMIN', '/secretadmin/');
8 Sep 2006, 1:39 AM
#8
peliopoulos avatar

peliopoulos

New Zenner

Join Date:
Sep 2006
Posts:
11
Plugin Contributions:
0

Re: Links in Admin area don't work after admin folder rename

I had the same problem as the original poster. I had to reset to admin to access my admin section.

Peter

27 Dec 2007, 5:55 PM
#9
citysole avatar

citysole

New Zenner

Join Date:
Aug 2006
Posts:
31
Plugin Contributions:
0

Re: Links in Admin area don't work after admin folder rename

Hello everybody!

So all the steps taken for the rename of the admin is correct.

What was overlooked is the CHMOD of the configure.php file.

Make sure that you can "Write" the Configure.php file on the server.
(666 config)

Then save it and change the CHMOD back to Read only (444 config)!