Forums / Basic Configuration / 404 error after changing name od admin folder

404 error after changing name od admin folder

Started by wagnerguy on 22 Dec 2011, 2:25 PM · Views: 3,661

Results 1 to 20 of 28
22 Dec 2011, 2:25 PM
#1
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

404 error after changing name od admin folder

Hello all, I just installed a new cart. I have to change the name of my admin folder per https://www.zen-cart.com/tutorials/index.php?article=33. but when i change the name in the 3 places that are mentioned and the folder name I get a 404 error. this is a second site in a larger public server. the entire cart is loaded in a folder. my permissions are at 777.

can anybody think of anything i may be missing?

thanks in advance

22 Dec 2011, 5:34 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: 404 error after changing name od admin folder

404 = "not found", which indicates that you've not entered a valid foldername in your URL

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

22 Dec 2011, 6:11 PM
#3
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

DrByte:

404 = "not found", which indicates that you've not entered a valid foldername in your URL I checked that also. It recognizes the folder until i change the name. I copy and pasted just to make sure there were no spaces or anything

22 Dec 2011, 7:06 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: 404 error after changing name od admin folder

Of course it recognizes it until you change the name. Then when you change the name you need to change the URL you're going to.

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

22 Dec 2011, 7:21 PM
#5
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

I have change the url, when I type in the exact url renamed. thats what I am getting. I am actually copying it from my ftp just to make sure.

22 Dec 2011, 7:24 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: 404 error after changing name od admin folder

Okay ... I look at it this way: The server will only say "not found" if indeed it's not found.

Sounds like you need to talk to your hosting company for specific help.

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

22 Dec 2011, 9:07 PM
#7
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

i contacted my host, they said it appears to be redirecting due to my htaccess file loaded in my main directory .. Has anyone ever heard of this? here is my file.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^prokarateshop.com$
RewriteRule ^/?$ "http://www.prokarateshop.com" [R=301,L]

For security reasons, Option followsymlinks cannot be overridden.

#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
RewriteBase /
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]

Deny access from .htaccess

RewriteRule ^.htaccess$ - [F]

RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]

RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L]

EOF SSU

Apparently, my files and renames are fine.. any additional help is appreciated

22 Dec 2011, 11:25 PM
#8
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: 404 error after changing name od admin folder

Remove everything after this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^prokarateshop.com$
RewriteRule ^/?$ "http://www.prokarateshop.com" [R=301,L]

And see if your admin works. Note: Save a backup of the file first.

The best way to learn is to try stuff. But, back it up first.

23 Dec 2011, 7:16 AM
#9
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

I am afraid it did the same thing. it just did not redirect back to my home site.

Is there anyway I can use admin without renaming it in the new zc version?

23 Dec 2011, 2:15 PM
#10
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

It may be something simple that because you've been looking at it for so long you can't see it. Maybe fresh eyes can help. Do you have anyone who can look at where you installed it and compare that to what you typed in the config?

You said the entire store is "in a folder". Is it in the root folder or in a subfolder?
And when you say "this is a second site" What do you mean - two versions of zen cart running on the same server"

23 Dec 2011, 2:22 PM
#11
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

joejoejoe:

It may be something simple that because you've been looking at it for so long you can't see it. Maybe fresh eyes can help. Do you have anyone who can look at where you installed it and compare that to what you typed in the config?

You said the entire store is "in a folder". Is it in the root folder or in a subfolder?
And when you say "this is a second site" What do you mean - two versions of zen cart running on the same server"

I agree, I have tried both 1.38 and 1.39, they both redirect to the wrong place. This is a second site(subfolder) that I have created within my public_html(home folder). do you think that could be it?

23 Dec 2011, 5:18 PM
#12
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: 404 error after changing name od admin folder

This is a second site(subfolder) that I have created within my public_html(home folder). do you think that could be it?

Did you make sure to append the folder name to the end of the URL in the configure.php files?

The best way to learn is to try stuff. But, back it up first.

23 Dec 2011, 6:13 PM
#13
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

RescoCCC:

Did you make sure to append the folder name to the end of the URL in the configure.php files?

Yes, i did this in the 3 places noted in the instructions. it will go to the logon page, but when i enter the credentials, it goes to /admin/login.php?zenAdminID=66dc039aaf771c3cc1bf4ef70dc05809

which is not found as per the 404

23 Dec 2011, 7:08 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: 404 error after changing name od admin folder

That tells me that you've not actually edited the configure.php file to tell it the new name of the admin folder.

And, before you say you have, be reminded that if the configure.php file is read-only, then any changes you might try to save to the file won't save.
Take note of the mention of that issue in the FAQ article about it: 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.

23 Dec 2011, 7:25 PM
#15
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

DrByte:

That tells me that you've not actually edited the configure.php file to tell it the new name of the admin folder.

And, before you say you have, be reminded that if the configure.php file is read-only, then any changes you might try to save to the file won't save.
Take note of the mention of that issue in the FAQ article about it: https://www.zen-cart.com/tutorials/index.php?article=33

Byte, I appreciate your candid statement. That was the one the first things I checked. I changed the permissions in my ftp and verified it in my cpanel

I even reinstalled zc just to make sure i maintained the correct process and permission.

I will try and reload it again. I will change the permissions. change the folder name in config, the change the folder name

23 Dec 2011, 7:46 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: 404 error after changing name od admin folder

The ONLY reason it would redirect to a URL containing "/admin/" after entering login credentials is if the configure.php file is telling it to.

Edit: I suppose you could have .htaccess redirects happening too, but those aren't part of Zen Cart, so I can't help you there.

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

23 Dec 2011, 8:02 PM
#17
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

DrByte:

The ONLY reason it would redirect to a URL containing "/admin/" after entering login credentials is if the configure.php file is telling it to.

Edit: I suppose you could have .htaccess redirects happening too, but those aren't part of Zen Cart, so I can't help you there.

ok, Its not redirecting to admin anymore, but its adding HTTPS, then giving me the same 404..
Does anyone know of somebody that help with a htaccess file

23 Dec 2011, 8:04 PM
#18
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: 404 error after changing name od admin folder

Does anyone know of somebody that help with a htaccess file

If you have one, back it up and then delete it to see what happens.

The best way to learn is to try stuff. But, back it up first.

23 Dec 2011, 8:04 PM
#19
drbyte avatar

drbyte

Sensei

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

Re: 404 error after changing name od admin folder

wagnerguy:

i contacted my host, they said it appears to be redirecting due to my htaccess file loaded in my main directory ..

Have you tried simply removing (or renaming) that file? It doesn't come with Zen Cart, so it could be tampering with normal functionality.

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

23 Dec 2011, 8:14 PM
#20
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: 404 error after changing name od admin folder

i just removed it, samething.

One thing I noticed is that its changing over to a https from http. could the ssl be causing an issue?

how can I stop it from redirecting to a https?