Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change store URL


kachro

Recommended Posts

Posted

Hello:

 

I have set up my webstore, under www.xxx.com , and now I've changed my domain to www.yyy.com . I need to know if there's a way I can change all the configuration files to www.yyy.com

 

I hope there is >_<

 

 

thanks a lot

Posted

You should just be able to edit your configure.php files, in:

 

/catalog/includes (or /includes) folder

 

/admin/includes (or/catalog/admin/includes) folder.

 

In each of the afore mentioned folders there is also a folder named local.

 

Sometimes there's a configure.php file in there that osC will use, too. If things don't work right, check it.

 

All you should neeed to change is all references of xxx.com to yyy.com

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

  • 2 weeks later...
Posted
You should just be able to edit your configure.php files, in:

 

/catalog/includes (or /includes) folder

 

/admin/includes (or/catalog/admin/includes) folder.

 

In each of the afore mentioned folders there is also a folder named local.

 

Sometimes there's a configure.php file in there that osC will use, too. If things don't work right, check it.

 

All you should neeed to change is all references of xxx.com to yyy.com

 

Hmm, I have done these steps and all i get is a blank page when i attempt to goto shop/index.php. Anyone know what else could be causing this? However, if i goto the admin page, it comes up, I type in the user name and password, but it just keeps me at the login page when i try to log in

Posted

all i get is a blank page when i attempt to goto shop/index.php.

 

Is that where it is in your configure.php file? Your store is located where you indicated it is in includes/configure.php. You also need to point to the new database connection, etc. Everything to change is in the two configure.php files - one in the store and one in the admin section.

 

If you are still having problems, post the top half of your configure.php file and your store URL

Posted
all i get is a blank page when i attempt to goto shop/index.php.

 

Is that where it is in your configure.php file? Your store is located where you indicated it is in includes/configure.php. You also need to point to the new database connection, etc. Everything to change is in the two configure.php files - one in the store and one in the admin section.

 

If you are still having problems, post the top half of your configure.php file and your store URL

I am running it on a subdomain where the full link to the store is yyy.mysite.com/shop/

the admin directory is yyy.mysite.com/shop/admin. All of the directory structures are the same as default. The admin is now working fine and logging in. The store works on the live server, I am trying to set up a development server for it.

 

/includes/configure.php:

<?php

define('HTTP_SERVER', 'http://yyy.mysite.com');

define('HTTPS_SERVER', 'http://yyy.mysite.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'yyy.mysite.com');

define('HTTPS_COOKIE_DOMAIN', 'yyy.mysite.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

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', 'pub/');

define('DIR_FS_CATALOG', '/srv/www/htdocs/shop/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

define('DB_SERVER', '127.0.0.1');

define('DB_SERVER_USERNAME', 'user');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'yyy');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...