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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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. #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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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. #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. Log in after rename Rename "admin" folder does not work
    By flashmxfreak in forum General Questions
    Replies: 3
    Last Post: 3 Sep 2011, 12:38 PM
  2. Followed recommendations to rename admin folder - now doesn't work
    By alicia1234 in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 12 Aug 2011, 12:45 AM
  3. Admin Pages Broken After Rename of Store Admin Folder
    By sarshmeh in forum Basic Configuration
    Replies: 4
    Last Post: 26 Mar 2010, 02:41 AM
  4. Rename Admin folder instructions does not work - did something wrong
    By ronwong in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 4 Dec 2006, 11:49 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR