Forums / Upgrading from 1.3.x to 1.3.9 / Rename Admin folder

Rename Admin folder

Locked

Started by alimtlai on 2 Jan 2010, 3:41 AM · Views: 3,853

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Jan 2010, 5:58 AM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Rename Admin folder

Automatic redirection

from
www.mydomain/new_admin/

to
www.mydomain/new_admin/login.php

is normal as that is how Zen Cart operates.

If you are experiencing something different you would need to provide specific details; preferably step-by-step details.

The learning is in the doing.

Potent Products

2 Jan 2010, 6:14 AM
#3
alimtlai avatar

alimtlai

New Zenner

Join Date:
Sep 2008
Posts:
87
Plugin Contributions:
0

Re: Rename Admin folder

If I simply type

www.mydomain/new_admin/

it will prompt me "page not found", I need to type

www.mydomain/new_admin/login.php

in order to get access to the admin panel. Although it's not a big problem, but I just want to know why. I also wonder if there is any potential problem hidden.

2 Jan 2010, 6:36 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Rename Admin folder

If you don't specify a file to load (such as login.php), it should automatically load "index.php" ... but that only happens if your server is configured to do that.

Best to talk to your hosting company for help in making sure your DirectoryIndex is set properly in the apache server settings.

.
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 Jan 2010, 11:27 AM
#6
mattymatt avatar

mattymatt

Zen Follower

Join Date:
Dec 2009
Location:
Pinner
Posts:
234
Plugin Contributions:
1

Re: Rename Admin folder

alimtlai:

If I simply type

www.mydomain/new_admin/

it will prompt me "page not found", I need to type

www.mydomain/new_admin/login.php

in order to get access to the admin panel. Although it's not a big problem, but I just want to know why. I also wonder if there is any potential problem hidden.

is there a .htaccess file in www.mydomain or www.mydomain/new_admin ? also a similar problem occurred when someone had SSL enabled in their admin/includes/configure.php file and it was redirecting to a non-existent SSL site which could give a 404 but typing in the URL without SSL would find the correct file for login.php

Matt

securemyzen.co.uk