Forums / Installing on a Linux/Unix Server / Changing Shop DOMAIN (not admin) to new domain

Changing Shop DOMAIN (not admin) to new domain

Locked

Views: 2,652

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
28 Mar 2014, 12:58 PM
#1
vojtechjan avatar

vojtechjan

New Zenner

Join Date:
Jan 2014
Posts:
35
Plugin Contributions:
0

Changing Shop DOMAIN (not admin) to new domain

Hi!

I am in need to change domain of my shop (and if it is possible I want to leave my main domain with admin files)
I tried changing

define('HTTP_SERVER', 'http://www.domain.com');
define('HTTPS_SERVER', 'https://www.domain.com');

but it leads to my site without any kind of css or images.
YET When I right click on images and have them "open in new tab" they are shown in this new tab (so url is correct) yet main page do not load them.

Any idea what do do? Where are things to change?
I am using Sheffield Blue template. And have 1.5 Zencart version

Thanks for help

28 Mar 2014, 1:32 PM
#2
vojtechjan avatar

vojtechjan

New Zenner

Join Date:
Jan 2014
Posts:
35
Plugin Contributions:
0

Re: Changing Shop DOMAIN (not admin) to new domain

This is what I got in the "show source of page"
I dunno why it did not change. Where I can change this thing?

<HTML><HEAD><TITLE></TITLE></HEAD> <FRAMESET ROWS="*"><FRAME NAME=997 NORESIZE SRC="http://olddomain/shop"> <NOFRAMES><BODY><A HREF="http://olddomain/shop">click here</A></BODY></NOFRAMES></FRAMESET></HTML>
28 Mar 2014, 1:45 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Changing Shop DOMAIN (not admin) to new domain

Had/have you cleared your cache/cookies?

It would also help to provide the location of the new site location. You changed not only the server name, but also as applicable the catalog location correct?

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

28 Mar 2014, 1:53 PM
#4
vojtechjan avatar

vojtechjan

New Zenner

Join Date:
Jan 2014
Posts:
35
Plugin Contributions:
0

Re: Changing Shop DOMAIN (not admin) to new domain

There was no need for it as site was in "doman/shop"
and I made newdomain link "domain" and enter throught newdomain/shop
(to define what the hell is going on and why it is not working as it should)

Also I am running it in Icognito mode so it should be alright yet it is not

28 Mar 2014, 2:02 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Changing Shop DOMAIN (not admin) to new domain

vojtechjan:

There was no need for it as site was in "doman/shop"
and I made newdomain link "domain" and enter throught newdomain/shop
(to define what the hell is going on and why it is not working as it should)

Also I am running it in Icognito mode so it should be alright yet it is not

Any htaccess rewrites that need(ed) to be changed?

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

28 Mar 2014, 2:03 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Changing Shop DOMAIN (not admin) to new domain

Have you reviewed the files causing theproblem to see if they have hard code for your old server name?

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

28 Mar 2014, 2:04 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Changing Shop DOMAIN (not admin) to new domain

I correct, you went from:
Domain1.com/folder
To:
Domain2.com/folder

For the web address shown onscreen?

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

28 Mar 2014, 2:18 PM
#8
vojtechjan avatar

vojtechjan

New Zenner

Join Date:
Jan 2014
Posts:
35
Plugin Contributions:
0

Re: Changing Shop DOMAIN (not admin) to new domain

mc12345678:

I correct, you went from:
Domain1.com/folder
To:
Domain2.com/folder

For the web address shown onscreen?

yes

mc12345678:

Have you reviewed the files causing theproblem to see if they have hard code for your old server name?

I cheked source of main page and all links leads fot newdomain files

mc12345678:

Any htaccess rewrites that need(ed) to be changed?

I deleted htacces files and still acomplished nothing

28 Mar 2014, 2:30 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Changing Shop DOMAIN (not admin) to new domain

vojtechjan:

There was no need for it as site was in "doman/shop"
and I made newdomain link "domain" and enter throught newdomain/shop
(to define what the hell is going on and why it is not working as it should)

Also I am running it in Icognito mode so it should be alright yet it is not

So the answer to this is that no you haven't cleared your cache/cookies, even though both addresses point to the same ip address and specific subfolder. Tried a different browser to see if same effect?

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

28 Mar 2014, 2:34 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Changing Shop DOMAIN (not admin) to new domain

vojtechjan:

I cheked source of main page and all links leads fot newdomain files

Source and code are two different things. The code is the file(s) on the server, the source is what is viewable in the browser. Not sure which template file(s) to look in to find the potential hard coding of the old server name, but the default install of that template doesn't require hard coding. What is the history of getting to responsive sheffield blue as the template? (Upgrades, etc. How were they performed?)

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

28 Mar 2014, 2:56 PM
#11
vojtechjan avatar

vojtechjan

New Zenner

Join Date:
Jan 2014
Posts:
35
Plugin Contributions:
0

Re: Changing Shop DOMAIN (not admin) to new domain

mc12345678:

So the answer to this is that no you haven't cleared your cache/cookies, even though both addresses point to the same ip address and specific subfolder. Tried a different browser to see if same effect?
Tried it on different computer and I have same effect.

mc12345678:

Source and code are two different things. The code is the file(s) on the server, the source is what is viewable in the browser. Not sure which template file(s) to look in to find the potential hard coding of the old server name, but the default install of that template doesn't require hard coding. What is the history of getting to responsive sheffield blue as the template? (Upgrades, etc. How were they performed?)
I pasted it into directory and installed it in admin as main theme. Had little bit of changes but nothing main to hardcode something with "domainname" in it.
Here is my template http://speedy.sh/gw2Ad/sheffield-blue.zip

28 Mar 2014, 3:14 PM
#12
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Changing Shop DOMAIN (not admin) to new domain

vojtechjan:

Tried it on different computer and I have same effect.

I pasted it into directory and installed it in admin as main theme. Had little bit of changes but nothing main to hardcode something with "domainname" in it.
Here is my template http://speedy.sh/gw2Ad/sheffield-blue.zip

Unfortunately at moment unable to download and review the posted file. Were the updates identified in the forum applied to the template? (One affects the includes/templates/responsive_sheffield_blue/common/tpl_header.php file.)

Also, once you navigate to another page, everything works as expected, correct? What if you then select the "home" option from either the mega menu or the logo? (Try both) same result for both cases?

May need to post your configure.php file with database username and passwords removed.

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

28 Mar 2014, 3:26 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Changing Shop DOMAIN (not admin) to new domain

vojtechjan:

This is what I got in the "show source of page"
I dunno why it did not change. Where I can change this thing?> <HTML><HEAD><TITLE></TITLE></HEAD>

<FRAMESET ROWS="*"><FRAME NAME=997 NORESIZE SRC="http://olddomain/shop"> <NOFRAMES><BODY><A HREF="http://olddomain/shop">click here</A></BODY></NOFRAMES></FRAMESET></HTML>

You've set up your domain by configuring some sort of "Frame Forwarding" to create the domain.
That basically makes one domain show another domain inside a frame on the other domain's page.
You can't do that with Zen Cart. And you especially can't do that if you're trying to collect payment on your site, because it violates security rules.

Go into your hosting configuration and change your new domain to be its own domain, WITHOUT frame-forwarding.

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

28 Mar 2014, 4:32 PM
#14
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Changing Shop DOMAIN (not admin) to new domain

DrByte:

You've set up your domain by configuring some sort of "Frame Forwarding" to create the domain.
That basically makes one domain show another domain inside a frame on the other domain's page.
You can't do that with Zen Cart. And you especially can't do that if you're trying to collect payment on your site, because it violates security rules.

Go into your hosting configuration and change your new domain to be its own domain, WITHOUT frame-forwarding.

I'm glad the doctor stepped in. I saw that and thought, huh why don't I have the frame tag in that template? Never used it, didn't know what it was. At least in this context.

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

4 Apr 2014, 1:37 PM
#15
vojtechjan avatar

vojtechjan

New Zenner

Join Date:
Jan 2014
Posts:
35
Plugin Contributions:
0

Re: Changing Shop DOMAIN (not admin) to new domain

JOLLYGOOOOOOD!
I LOVE YOU DrBYTE. You are my ######## superhero now :*