Zen Cart Logo
Forums / General Questions / help working on test server - hard redirect?

help working on test server - hard redirect?

Locked

Views: 1,385

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Sep 2009, 10:04 PM
#1
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

help working on test server - hard redirect?

hi, we are moving our ZC site to a new server :D

we are having a very strange issue that hopefully one of the gurus here makes me feel stoopid. :lookaroun

here is the issue.

we moved all our files over to our new server, installed DB, connected everthing, but when we goto the index on our test servers link, it gets forwarded to the live site everytime.

I thought maybe htaccess file, but that has been disabled... other than that I cannot figure it out... there has to be something I am missing, please help!

thanks so much!

17 Sep 2009, 10:07 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: help working on test server - hard redirect?

Has the domain name changed?

17 Sep 2009, 10:18 PM
#3
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

Re: help working on test server - hard redirect?

kuroi:

Has the domain name changed?

the main domain is the same, but we haven't switched the DNS over, so our test server from Rackspace looks like this:

http://www.midwestapplianceparts.com.php5-2.dfw1-2.websitetestlink.com

this goes into the directory of our test server FTP, but once it hits it, it goes to midwest appliance parts.com the main site... I did some tests on some sites and it says it is being redirected...

17 Sep 2009, 10:38 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: help working on test server - hard redirect?

It seems that you haven't changed your configure files to point to the new server, so when links are built on your site, they point to the original domain name which DNS takes back to your original site.

18 Sep 2009, 3:08 AM
#5
milkyway avatar

milkyway

Inactive

Join Date:
Aug 2006
Location:
Singapore
Posts:
167
Plugin Contributions:
1

Re: help working on test server - hard redirect?

Hi,

I work on the site too, actually the configure.php file is already changed to reflect the temporary URL, also database already used the copy database in the new server.

I just couldn't find the redirect in the template files, I switch to default but still get the same result.

I guess we need to check the whole files thoroughly and find the redirect.

Or do you have any better idea?

Thanks!

18 Sep 2009, 7:52 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: help working on test server - hard redirect?

Ah. I see what you mean, it's redirecting even before the first page gets displayed. I rather suspect that this is something in your hosting arrangement. After all, if you've changed all references to the URL in your configure files, your Zen Cart doesn't even know where your original site was.

18 Sep 2009, 8:01 AM
#7
milkyway avatar

milkyway

Inactive

Join Date:
Aug 2006
Location:
Singapore
Posts:
167
Plugin Contributions:
1

Re: help working on test server - hard redirect?

thanks for your info.

yes it was exactly what I have in mind, something in hosting arrangement, but host said no arrangement on their side.

This leave me clueless now .... I'll check once again and see if anything else we can do. thanks Kuroi

18 Sep 2009, 9:41 AM
#8
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: help working on test server - hard redirect?

is it using localhost for database or a hosted database
could this affect it?
not sure..just idea's as im a newb with websites lol

also check
define('DIR_FS_CATALOG'