Forums / Basic Configuration / Changing the admin folder name problem

Changing the admin folder name problem

Views: 1,780

Results 1 to 5 of 5
5 Apr 2024, 3:26 PM
#1
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Changing the admin folder name problem

I have changed the name of my admin foldder and now I'm having a problem when signing in.

When I go to:

https://www.mywebsite.com/myadminpage/index

I'm correctly sent to the login page. I enter my username and password and click Enter,
but then I'm incorrectly sent to the 'Page Not Found' page, and the URL is missing the 'index', like this:

https://www.mywebsite.com/myadminpage

If I now manually add 'index' to the URL then I'm sent correctly to my admin home page.

Why is 'index' automatically removed from the URL when I'm trying to login?

5 Apr 2024, 5:58 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Changing the admin folder name problem

DML73:

I have changed the name of my admin foldder and now I'm having a problem when signing in.

When I go to:

https://www.mywebsite.com/myadminpage/index

I'm correctly sent to the login page. I enter my username and password and click Enter,
but then I'm incorrectly sent to the 'Page Not Found' page, and the URL is missing the 'index', like this:

https://www.mywebsite.com/myadminpage

If I now manually add 'index' to the URL then I'm sent correctly to my admin home page.

Why is 'index' automatically removed from the URL when I'm trying to login?
Are you using Ceon URI Mappings? If so, the site's .htaccess includes the admin-directory's name as one of the URLs to "leave alone" and that file needs to be updated, too.

5 Apr 2024, 7:08 PM
#3
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Re: Changing the admin folder name problem

Perfect! that was the problem. I changed the name in the .htaccess file and now its working.

5 Apr 2024, 7:16 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Changing the admin folder name problem

Excellent catch @lat9! I will update the documentation with this reminder.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

5 Apr 2024, 7:26 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Changing the admin folder name problem

swguy:

Excellent catch @lat9! I will update the documentation with this reminder.
:thumbsup: Thanks, @swguy; I was just going to suggest that update!