Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I move to a different subdomain


rlchism

Recommended Posts

Posted

Hello and thanks in advance for the help.

I developed my store in one subdomain, let's call it sub1.mydomain.com. When it was finished I needed to port it to another subdomain sub2.mydomain.com (because of using an add-on domain). I simply copied all the files to the new subdomain sub2 but when I click on the product categories in sub2 it links back to the original subdomain sub1. What do I have to change in sub2 so that it knows not to point back to sub1 for links?

Posted
Hello and thanks in advance for the help.

I developed my store in one subdomain, let's call it sub1.mydomain.com. When it was finished I needed to port it to another subdomain sub2.mydomain.com (because of using an add-on domain). I simply copied all the files to the new subdomain sub2 but when I click on the product categories in sub2 it links back to the original subdomain sub1. What do I have to change in sub2 so that it knows not to point back to sub1 for links?

Never mind. I foumd the two files I needed to change: includes/configure.php and admin/includes/configure.php I changed them and it seems to be working fine.

  • 2 years later...
Posted

I have the same problem.

 

I want to move my shop from http://mydomain.com/shop/ to http://mydomain.com/shop2/

 

I have copied the /shop/ folder to /shop2/ folder but when I click on the products, etc in the /shop2/ it links back to the original subdomain /shop/

 

I configured both includes/configure.php

 

<?php
 define('HTTP_SERVER', 'http://mydomain.com/');
 define('HTTPS_SERVER', 'https://mydomain.com/');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'http://mydomain.com/');
 define('HTTPS_COOKIE_DOMAIN', 'https://mydomain.com/');
 define('HTTP_COOKIE_PATH', '/shop2/');
 define('HTTPS_COOKIE_PATH', '/shop2/');
 define('DIR_WS_HTTP_CATALOG', '/shop2/');
 define('DIR_WS_HTTPS_CATALOG', '/shop2/');
 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', '/home/***/public_html/shop2/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', '******');
 define('DB_SERVER_PASSWORD', '******');
 define('DB_DATABASE', '******');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

 

and admin/includes/configure.php but didn't work.

 

 

<?php
 define('HTTP_SERVER', 'http://mydomain.com/');
 define('HTTP_CATALOG_SERVER', 'http://mydomain.com/');
 define('HTTPS_CATALOG_SERVER', 'https://mydomain.com');
 define('ENABLE_SSL_CATALOG', 'true');
 define('DIR_FS_DOCUMENT_ROOT', '/home/***/public_html/shop2/');
 define('DIR_WS_ADMIN', '/shop2/admin/');
 define('DIR_FS_ADMIN', '/home/***/public_html/shop2/admin/');
 define('DIR_WS_CATALOG', '/shop2/');
 define('DIR_FS_CATALOG', '/home/***/public_html/shop2/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', '****');
 define('DB_SERVER_PASSWORD', '********');
 define('DB_DATABASE', '***********');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

 

 

What should I do?

 

Regards!

Posted

I'm also in a similar boat boat. Some things like the default currency, I change it in one and it is different from the other which is how it should be.

 

But if I change the shop owner in one, it changes on both and if I edit the product description one one, it changes on both as well.

 

I've also gone through and changed everything that pointed back to the original directory to the new one but I'm assuming there's a bunch I've missed in the admin configure section.

 

Thanks in advance for any help

Posted

Just to further clarify, the defines in the admin/configure.php I have changed are:

 

http server

http catalog server

dir fs document root

dir we admin

dir fs admin

dir fs catalog

 

 

the rest all are the same as they were because there was no reference to my original site in them (ie dir_ws_images just had images/ )

 

Am I supposed to edit more or all of these?

 

Thanks heaps

Archived

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

×
×
  • Create New...