Forums / Basic Configuration / I want to change my store's domain name

I want to change my store's domain name

Locked

Started by vito on 23 Nov 2009, 2:40 AM · Views: 2,381

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Nov 2009, 2:40 AM
#1
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

I want to change my store's domain name

I currently have a store set up in the root directory of let's say mysite1.com. I want to change the domain to mysite2.com. I have my own server so I am able to log in to admin and simply change the name of the account from mysite1.com to mysite2.com. The files do not need to be moved. But at this point, I will need to edit some config files. In the Tutorials/FAQ section, I see how to move a store from one subfolder to another. Do I follow the same config editing instructions in this case or is there more to do?

Vito

23 Nov 2009, 3:01 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: I want to change my store's domain name

Zen Cart only uses the 2 configure.php files for that information.
If you're only changing the domain name, simply change it there.
If you move any files/folders to a different folder structure, you'll need to alter the paths too.

.
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 Nov 2009, 4:12 AM
#3
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: I want to change my store's domain name

Thanks DrByte.

So to be clear, I just need to download and edit /includes/configure.php and /admin/includes/configure.php files, then set permissions of these files to writeable, then upload revised files, then set permissions back to what they were?

What about databases? For instance, using cPanel, a database is prefixed with mysite1_ . When changing my domain to mysite2.com, do I not need to reconfigure or rename the database?

And finally, for SEO purposes, I was told that uploading a properly coded htaccess file to the new domain will properly redirect all SE organic traffic through to the new domain. But I don't see how that would work. Would I not have to leave mysite1 on the server complete with all its files and upload the htaccess file THERE so that it properly redirects?

Vito

23 Nov 2009, 4:29 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: I want to change my store's domain name

If you're changing things so much that your cPanel account name is also changed, then yes, you'll have to redo all the database settings in those files too.

.
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 Nov 2009, 4:32 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: I want to change my store's domain name

On the .htaccess part, yes, you're largely correct. You DO need to keep an account somewhere for your old domain, but all you'll need is redirect code in it, not the entire site.
Many people do that with .htaccess. You can study relevant details about redirect directives via your favorite search engine.

But, if you're NOT changing cPanel user accounts, then you can have addon domains set up in a subfolder, making a lot less work.

If you need help running/managing your own servers, there are other websites devoted to the topic, such as webhostingtalk.com

.
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 Nov 2009, 5:01 AM
#6
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: I want to change my store's domain name

DrByte:

If you need help running/managing your own servers, there are other websites devoted to the topic, such as webhostingtalk.com
Funny you say that. It's actually one of the Mods at WHT (a good friend of mine) who will be walking through the process. :) (I've been a member there since 2001)

As for the addon domain approach, hmmm. He referred to this as one of the steps and it just now popped back in my brain because you just mentioned it. Perhaps I should call him and ask him to refresh my memory of the overall process.

Thanks as always for you prompt replies, DrByte. You rock. :D

Vito

23 Nov 2009, 9:30 PM
#7
peco1 avatar

peco1

New Zenner

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

Re: I want to change my store's domain name

Hello,
Sorry for disturbing your thread, but I have a similar situation that I need to change my domain name.

My site used to be https://www.mysite.com, then I hired someone to modify some functions. He created a subfolder in the public_html/mysite and put all files in there and changed it to https://www.mysite.com/mysite.

Please show me how can I change my domain back to mysite.com without moving the files back to public_html? because there're so many subfoders under public_html.

I already edited /includes/configure.php and /admin/includes/configure.php files but the they made whole site messy without tables and images.

Thanks for your helps.

2 Dec 2009, 2:51 PM
#8
kayuchan avatar

kayuchan

New Zenner

Join Date:
Dec 2009
Posts:
1
Plugin Contributions:
0

Re: I want to change my store's domain name

How to set Zencart to addon domain?
I move the folder to my addon domain, then I change old domain to new domain in /includes/configure.php and /admin/includes/configure.php
But I can't open the page of admin.
Please help me.

Sorry for my poor English.

12 Jan 2010, 11:43 AM
#9
alwaysriding avatar

alwaysriding

New Zenner

Join Date:
Dec 2008
Posts:
26
Plugin Contributions:
0

Re: I want to change my store's domain name

DrByte:

Zen Cart only uses the 2 configure.php files for that information.
If you're only changing the domain name, simply change it there.
If you move any files/folders to a different folder structure, you'll need to alter the paths too.

Hi, could you possibly expand on altering the category paths please? We have just deleted our top level categories after moving all cats / sub cats above them, and now subsequently the home page has changed, but the old 'shop for men' site URL is still in use.

Bit confused firstly how to define the new home page and edit the category paths (if this is indeed necessary).

Thanks,

Pete