Zen Cart Logo
Forums / Basic Configuration / 404 error after rename Admin

404 error after rename Admin

Views: 2,054

Results 1 to 10 of 10
5 Aug 2011, 12:57 AM
#1
nutrahealth avatar

nutrahealth

New Zenner

Join Date:
Apr 2011
Posts:
6
Plugin Contributions:
0

404 error after rename Admin

Hello,

I tried to rename the admin folder by following the instructions on this url: kb.siteground.com/article/Rename_Zen_Cart_Admin_Directory.html

I got everything working, It asked me to log in to admin by using the new url. But the problem which i am having is when i access the website the homepage works fine but when i try to open the deep link it give error 404 - not found

Anyone have any idea what I a doing wrong.

5 Aug 2011, 1:06 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: 404 error after rename Admin

That siteground article is incomplete, and therefore wrong.

You'd be better off using the tutorials supplied by Zen Cart. I've no idea why you'd go to siteground for information that's supplied directly on the Zen Cart website AND linked-to directly from within the Zen Cart software which prompts you to do the admin folder rename.

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

5 Aug 2011, 3:30 PM
#3
nutrahealth avatar

nutrahealth

New Zenner

Join Date:
Apr 2011
Posts:
6
Plugin Contributions:
0

Re: 404 error after rename Admin

I did use the same zen cart tutorials info too (https://www.zen-cart.com/tutorials/index.php?article=33), everything works fine, as says the part C , Login to your admin using the new URL. I was able to log in using my new ADMIN NAME in the url, but the only problem i faced was my website deep-links start giving error 404.

Any idea, what I might be gone wrong!!

5 Aug 2011, 6:29 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: 404 error after rename Admin

Maybe it's your so-called "SEO URL" addon? Try using without the addon.

17 Aug 2011, 4:28 PM
#5
marilys avatar

marilys

New Zenner

Join Date:
Aug 2011
Posts:
1
Plugin Contributions:
0

Re: 404 error after rename Admin

Im having the same problem. i did exactly what was said in the user guide and its not working. what am I doing wrong?:wacko:

18 Aug 2011, 12:24 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: 404 error after rename Admin

I'm not sure which "same" problem you're having. Did you follow the incorrect instructions just like the first poster did?

20 Oct 2012, 8:58 PM
#7
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: 404 error after rename Admin

I'm having the same problem but maybe in a different way. We're moving our store from one domain to another. We didn't want to move our domain name until we can see that our store copied over OK by just using the IP address we were given. So I've been following the directions from here:
http://www.zen-cart.com/content.php?142-i-want-to-move-my-zen-cart-installation-to-another-host-or-a-different-server
and at the end of the installed I clicked "view admin" and I got the warning to delete the install and rename the admin. I did that, but am getting the 404 when I put the url directly in the address bar. Granted, the current webisite url is http://IPaddress/~username/mynewadminname/ (/~username/ because it is a shared account) The http://ipaddress/~username is of course what is in place until we redirect our domain name.

I'm looking in configure files right now and notice that teh IP address is HTTP_SERVER and the /~username/ is DIR_WS_CATALOG, so I suppose when I entered the temporary url during the install, it interpreted the /~username/ as the catalog - which doesn't exist in the file structure.

So, I'm wondering if its going to possible to test our store on http://ipaddress/~username . Must we have a domain name to see the Zencart install?

20 Oct 2012, 9:29 PM
#8
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: 404 error after rename Admin

Ok. so I changed some things in the config files and I can now at least see the zencart install with demo products at the url http://IPaddress/~username/. I moved the /~username/ up into the HTTP_SERVER to give it the complete http://IPaddress/~username/ path. The DIR_WS_CATALOG now just reads '/'.

I've tried this with the admin sections but I'm still getting the 404 when I go to http://IPaddress/~username/mynewadminname/
so right now I have

define('HTTP_SERVER', 'http://IPaddress/~username/');
define('HTTPS_SERVER', 'https://IPaddress/~username/');
define('HTTP_CATALOG_SERVER', 'http://IPaddress/~username/);
define('HTTPS_CATALOG_SERVER', 'https://IPaddress/~username/');

define('DIR_WS_ADMIN', 'mynewadminname/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', 'mynewadminname/');

I'll keep trying. But if anyone has any ideas....

21 Oct 2012, 3:10 PM
#9
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: 404 error after rename Admin

I never figured out the admin issue. But I went ahead and switch my domain DNS servers and change my configure files back to domain name path and now its all good. The move was successful with only some minor kinks to work out.

21 Oct 2012, 5:49 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: 404 error after rename Admin

It's not unusual to have login problems when using an IP address as your domain name instead of a proper domain name.
And, since production servers will always run from a domain name, it's somewhat moot.