Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2006
    Posts
    22
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default 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!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    Aug 2006
    Posts
    22
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default 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!
    Donations always welcome: www.zen-cart.com/donate

    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. #5
    Join Date
    Aug 2006
    Posts
    22
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

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

    The links are built from the configure.php settings.

    ie:
    Code:
      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!
    Donations always welcome: www.zen-cart.com/donate

    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. #7
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default 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!
    Donations always welcome: www.zen-cart.com/donate

    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. #8
    Join Date
    Sep 2006
    Posts
    11
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Aug 2006
    Posts
    31
    Plugin Contributions
    0

    Default 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 mtizol######################

 

 

Similar Threads

  1. Add links in header?
    By drdre in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 6 Jul 2006, 05:41 AM
  2. EZ Pages?
    By Robert T in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Jul 2006, 04:50 PM
  3. redirects prevent access to admin area
    By Tim_B in forum General Questions
    Replies: 6
    Last Post: 15 May 2006, 11:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •