Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45
  1. #21
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problem renaming admin folder - zen cart 1.38a

    If you go to www.your_domain.com/shop/your_admin/login.php ... what happens?
    Assuming it gives you the login prompt, and you try to login, now what happens? Is that when the 404 now appears?
    .

    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.

  2. #22
    Join Date
    Jan 2010
    Posts
    90
    Plugin Contributions
    0

    Default Re: Problem renaming admin folder - zen cart 1.38a

    Hi DrByte,

    by doing what you say it takes me to the login page but I then get link broken http 404 file not found

    I was doing www.mysite.com/shop/my_admin which I was always able to signin on before this change.

    I have a screen grab here, it takes me to my shop home page?

    Last edited by Jay76; 16 Mar 2010 at 09:58 PM.

  3. #23
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problem renaming admin folder - zen cart 1.38a

    1. It's taking you to your shop home page strictly because that's how your site has been set up to handle 404-not-found conditions.

    2. The fact that going to the login.php directly works shows that you've got the files in the right folder.

    3. The reason going to just /shop/my_admin/ gives you a redirect is because when you don't specify a filename, the server assumes index.php and, since the first thing index.php does is verify whether you're logged in, since you're not yet logged in, it's trying to redirect you to the login page. Hence the difference between going direct to the login.php page yourself.

    4. Your redirects are clearly the problem, and the admin redirects are always built based on the info in your /admin_folder_name/includes/configure.php file.

    So ... your edits to the admin configure.php file are your problem.

    Please post what you have in your admin configure.php file now. Feel free to mask the actual admin foldername and replace your URL with my_domain.com. And of course your database details.
    Please don't mask anything else.
    .

    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.

  4. #24
    Join Date
    Jan 2010
    Posts
    90
    Plugin Contributions
    0

    Default Re: Problem renaming admin folder - zen cart 1.38a

    Ok just let me get that info

  5. #25
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Problem renaming admin folder - zen cart 1.38a

    Quote Originally Posted by Jay76 View Post
    Ok just let me get that info
    Best to FTP down a fresh copy of the /shop/my_admin/includes/configure.php from the server and post the contents of that one.

    Regards,
    Christian.

  6. #26
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problem renaming admin folder - zen cart 1.38a

    Quote Originally Posted by Jay76 View Post
    Ok just let me get that info
    I got your PM

    Here's your problem.

    Contrary to the FAQ instructions which indicate to *merely* change the literal "/admin/" to "/your_new_admin/", you decided to take it further and also change other stuff too, specifically the foldername where your whole store+admin resides.

    Specifically, you changed "/shop/admin/" to "/your_new_admin/" .... and since you dropped the "/shop/" part, it's looking just for "/your_new_admin/" ... which doesn't exist because it's really located at "/shop/your_new_admin/".

    So ... go back and make sure that the "/shop/" part is put back where you took it out.

    https://www.zen-cart.com/tutorials/index.php?article=33
    .

    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. #27
    Join Date
    Jan 2010
    Posts
    90
    Plugin Contributions
    0

    Default Re: Problem renaming admin folder - zen cart 1.38a

    Hi DrByte...... I am sure that was posted on this thread #11 to change to this so that is why that is the way it is.

    So with that changed it should work hey?

    thanks for your help

  8. #28
    Join Date
    Jan 2010
    Posts
    90
    Plugin Contributions
    0

    Default Re: Problem renaming admin folder - zen cart 1.38a

    Also to mention I recall it having the /shop in the configures file before and did not work so I am touching wood on this if it works, will soon be calling it a night I think

  9. #29
    Join Date
    Jan 2010
    Posts
    90
    Plugin Contributions
    0

    Default Re: Problem renaming admin folder - zen cart 1.38a

    ok it works on this basis

    http://www.**********.co.uk/shop/my_admin/login.php

    but takes an age to sign in, really slow!

    without putting the login.php it just results on the 404 error posted earlier as per the picture.

  10. #30
    Join Date
    Oct 2009
    Location
    Smack in the Middle
    Posts
    131
    Plugin Contributions
    0

    Default Re: Problem renaming admin folder - zen cart 1.38a

    [QUOTE]Hi DrByte...... I am sure that was posted on this thread #11 to change to this so that is why that is the way it is/QUOTE]

    Obviously, the guy who wrote post 11 is an idiot, and whose advice should never be followed by anyone at any time.

    Seriously, sorry to have added to your frustrations by leading you astray. You did however have /shop/ in an earlier, failed attempt.

    Hope you post how you fixed it so we can all learn how.

    Good Luck
    Dalton
    Skin that 'un pilgrim, and I'll bring ya' another.
    Running 1.3.9h with a few mods here

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Problem with renaming Admin folder
    By TzuLady in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 21 Apr 2010, 06:19 AM
  2. Renaming ADMIN folder?
    By kenny724 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Feb 2010, 05:02 PM
  3. renaming admin folder
    By pcdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Jun 2008, 08:41 PM

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