Zen Cart Logo
Forums / Basic Configuration / Cannot Access Admin Area After Renaming

Cannot Access Admin Area After Renaming

Locked

Views: 1,119

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
9 Apr 2010, 7:46 PM
#1
games4gamers avatar

games4gamers

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Cannot Access Admin Area After Renaming

I renamed my Admin folder and updated configure.php and uploaded it and I still cannot access the Admin area. The new URL gives "Page Not Found" (using my custom 404) and the old URL gives a default 404 page...I've re-uploaded several times...I don't know what the problem is...

Edit:

Apparently it doesn't like my .htaccess file:

This is all it has in it:

#.htaccess to prevent unauthorized directory browsing or access to .php files
  IndexIgnore */*
  <Files *.php>
   Order Deny,Allow
   Deny from all
  </Files>

 #add the following to protect against people discovering what version your spiders.txt file is
  <Files *.txt>
   Order Deny,Allow
   Deny from all
  </Files>
9 Apr 2010, 7:54 PM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Cannot Access Admin Area After Renaming

But you can still access the store area?

9 Apr 2010, 7:58 PM
#3
games4gamers avatar

games4gamers

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Re: Cannot Access Admin Area After Renaming

Get Em Fast:

Did you update BOTH configure.php files?

includes/configure.php
admin/includes/configure.php

Of course the admin will be whatever you named your admin folder to.

There isn't any admin reference in the non-admin configure, as far as I could tell?

9 Apr 2010, 8:00 PM
#4
games4gamers avatar

games4gamers

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Re: Cannot Access Admin Area After Renaming

Yeah I can access the store, with the exception being that the sideboxes don't display on the home page. I couldn't access the store when I had the .htaccess file enabled.

9 Apr 2010, 8:02 PM
#5
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Cannot Access Admin Area After Renaming

Oops.........thought I had got that edited before it was seen.......please disregard, as that was one of those "brain-fart" moments.

9 Apr 2010, 8:03 PM
#6
games4gamers avatar

games4gamers

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Re: Cannot Access Admin Area After Renaming

Get Em Fast:

Oops.........thought I had got that edited before it was seen.......please disregard, as that was one of those "brain-fart" moments.

Haha no problem. Happens to us all sometimes.

9 Apr 2010, 10:36 PM
#7
website_rob avatar

website_rob

Inactive

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

Re: Cannot Access Admin Area After Renaming

Is the .htaccess file in question located in your admin dir. ?

You can test if your Admin .htaccess file is the problem by renaming it and seeing if you have access.

If yes then you will need to include access for your IP.

#.htaccess to prevent unauthorized directory browsing or access to .php files
IndexIgnore /

<Files *.php>
Order Deny,Allow
Deny from all
Allow from xxx.xxx.xxx.xxx
</Files>

12 Apr 2010, 2:46 PM
#8
games4gamers avatar

games4gamers

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Re: Cannot Access Admin Area After Renaming

Website Rob:

Is the .htaccess file in question located in your admin dir. ?

You can test if your Admin .htaccess file is the problem by renaming it and seeing if you have access.

If yes then you will need to include access for your IP.

#.htaccess to prevent unauthorized directory browsing or access to .php files
IndexIgnore /

<Files *.php>
Order Deny,Allow
Deny from all
Allow from xxx.xxx.xxx.xxx
</Files>

Awesome, that worked. Thanks! :clap: