Forums / Basic Configuration / Moving store from one domain to another

Moving store from one domain to another

Locked

Views: 2,266

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
15 Nov 2010, 4:55 PM
#1
mferrari avatar

mferrari

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Moving store from one domain to another

I created my store on one domain while I was setting everything up. Now that the store is ready to launch I wanted to move it to another domain. I copied the folder to the new domain server and the front page loads fine. Any link clicked from the front page is bringing up the old domain links.

Any thoughts?

15 Nov 2010, 5:01 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving store from one domain to another

Let us know where to see this??

Zen-Venom Get Bitten

15 Nov 2010, 5:16 PM
#3
mferrari avatar

mferrari

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: Moving store from one domain to another

http://dorfab.com/

You can see the links are trying to bring back the old 'store.delmarvacrawlers' site that the store was created on.

I followed the tutorial here:
https://www.zen-cart.com/tutorials/index.php?article=122

Changed all the domains back to dorfab.com

15 Nov 2010, 5:20 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving store from one domain to another

Post your /includes/configure.php file contents BUT
X-out the DB user, db name & db pass for security reasons

Zen-Venom Get Bitten

15 Nov 2010, 5:21 PM
#5
mferrari avatar

mferrari

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: Moving store from one domain to another

Also everything is being hosted with 1and1 on the same server and all. dorfab is using the same directory that the store was built on.

15 Nov 2010, 5:22 PM
#6
mferrari avatar

mferrari

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: Moving store from one domain to another

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://dorfab.com');
define('HTTPS_SERVER', 'https://dorfab.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs

folder)
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg:

/var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/homepages/11/d313267184/htdocs/DORFab/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', *********);
define('DB_SERVER_USERNAME', ********);
define('DB_SERVER_PASSWORD', );
define('DB_DATABASE', '
);
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your

apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache"

folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/homepages/11/d313267184/htdocs/DORFab/cache');

15 Nov 2010, 5:25 PM
#7
mferrari avatar

mferrari

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: Moving store from one domain to another

whoops, I feel like a dummy now. I looked in the ftp program and saw the update of configure did not load. Loaded it and works great now.

15 Nov 2010, 5:27 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving store from one domain to another

Great!!

It is always the little things

Zen-Venom Get Bitten

15 Nov 2010, 5:34 PM
#9
mferrari avatar

mferrari

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: Moving store from one domain to another

Thanks for the help!

On a side note (I am still fairly new the coding).

I have our logo on the header but can't seem to locate a section of code that will allow me to center the logo. Anyone know where to look?

15 Nov 2010, 5:40 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving store from one domain to another

Find in your stylesheet.css file

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
	float: left;
	}

Seperate out the logo to resemble this

#logo {
	text-align: center;
	}

.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
	float: left;
	}

Also edit this to be 288px for the height

#logoWrapper{
	background-image: url(../images/header_bg.jpg);
	background-repeat: repeat-x;
	background-color: #ffffff;
	height: 75px;
	}

Zen-Venom Get Bitten

15 Nov 2010, 6:03 PM
#11
mferrari avatar

mferrari

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: Moving store from one domain to another

Thanks again

15 Nov 2010, 6:05 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving store from one domain to another

Swapped those around but now I have a navigation bar under the logo
And you don't want it or want it somewhere else?

Zen-Venom Get Bitten

15 Nov 2010, 6:21 PM
#13
mferrari avatar

mferrari

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: Moving store from one domain to another

You got me before the edit, I messed up my code but fixed it.