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

Started by bhfruitcakeco on 5 Sep 2006, 2:39 AM · 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,511
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...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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,511
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 ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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,511
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/');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Sep 2006, 1:17 AM
#7
drbyte avatar

drbyte

Sensei

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

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

how are you accessing this new area?

are you using: http://yoursite/secretadmin/index.php ?

or are you still using http://yoursite/admin/index.php ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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)!

MigSig LLC Graphic Web Design and Consulting [email protected]