Forums / General Questions / Error 404 in both store and admin panel after moving website to different server!

Error 404 in both store and admin panel after moving website to different server!

Views: 868

Results 1 to 7 of 7
10 Oct 2017, 5:51 AM
#1
armita84 avatar

armita84

New Zenner

Join Date:
Oct 2017
Posts:
13
Plugin Contributions:
0

Error 404 in both store and admin panel after moving website to different server!

Hello,

I have a website developed by zen-cart 1.3.9h and it's on parallels helm server with mysql 5.5 and PHP version 5.3.24. I want to move my website to cpanel server with mysql 5.6.36-82.1 and PHP version 5.3.26 in a subdomain.
I've done this movement based on below tutorial:

https://www.squirrelhosting.co.uk/hosting-blog/hosting-blog-info.php?id=44

Just like this tutorial, I did backup of my website and database, then installed zen-cart (same version as my current website) in new server and created a new database for that. After launching the new installed zen-cart everything was fine. To access admin panel I changed configure.php in admin/includes and replaced every admin name to my custom name in this file and after that I renamed the admin folder. So, I could login to admin panel and also access the storefront.

After that, I copied and replaced my current website's files and folders (WITHOUT two configure.php files in includes and admin/includes folder), empty new created database and import my old database!
I also added fix_cache_key.php to zen-cart's root and run this file to reindex the sessions but error 404 occurred! Now I see error 404 in both store and admin panel and can't do anything!

I should mention that during database import some an error happened many times (the screenshot of error is in the attachment) but after doing import multiple times I could import the database successfully (Maybe this is the cause of the issue!)

My current website url: https://www.atlas-uae.com
My website url on new server: https://www.dxbsafe.com/zen-cart/

Please help me if I was doing wrong somewhere. I'm overwhelmed with this!

10 Oct 2017, 12:27 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Error 404 in both store and admin panel after moving website to different server!

Looks like this has been resolved. What did you find the problem to be or what did you do to resolve it?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

10 Oct 2017, 5:16 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Error 404 in both store and admin panel after moving website to different server!

mc12345678:

Looks like this has been resolved. What did you find the problem to be or what did you do to resolve it?More importantly, why did the OP not upgrade instead of moving? All that work for little return.:(

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

10 Oct 2017, 6:29 PM
#4
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,969
Plugin Contributions:
8

Re: Error 404 in both store and admin panel after moving website to different server!

i do not see where this is resolved at all.

the new site URL gets a 404 error.

the old site is working.

the new site base URL (http://www.dxbsafe.com/) looks to be a magento site.

if there are still problems with the new site, i would first post the contents of includes/configure.php.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

11 Oct 2017, 6:08 AM
#5
armita84 avatar

armita84

New Zenner

Join Date:
Oct 2017
Posts:
13
Plugin Contributions:
0

Re: Error 404 in both store and admin panel after moving website to different server!

Thanks for your respond. It's not about the configure.php cause I did clone the website in localhost (xampp), just like I did in my post description and it's working! Maybe the issue is related to the new server. I've contacted new server support and they are working on it.
Thanks again for your help.

14 Oct 2017, 11:52 AM
#6
armita84 avatar

armita84

New Zenner

Join Date:
Oct 2017
Posts:
13
Plugin Contributions:
0

Re: Error 404 in both store and admin panel after moving website to different server!

I've found the solution. After copying old website to new server, .htaccess file was there. I renamed this file and now I can see my store and admin panel in new server.

14 Oct 2017, 3:26 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Error 404 in both store and admin panel after moving website to different server!

Armita84:

I've found the solution. After copying old website to new server, .htaccess file was there. I renamed this file and now I can see my store and admin panel in new server.
Should review the contents of the file that has been removed as it may have some features that are intended to improve security even though there obviously is something that needs to be modified to work on your new server's arrangement.

If you choose to post the contents, be sure to obscure sensitive information and also before pasting the content, please click the # button in the message box toolbar to generate ```
[CODE][/CODE]

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...