fszone Posted February 24, 2008 Posted February 24, 2008 Hi, I just duplicated my live site so I can have a test site to play around on. I copied the files into another folder, and also duplicated the MySQL database. How ever, when i go to the test site www.test.com/test/ if I click on any link it takes me to the equivilant page of the Live site. ie; it goes back to www.test.com/ I couldn't find any settings in the back end of admin. What am i missing? Thank you, cheers. DOGECOIN GAMBLING SITES :P LITECOIN GAMBLING SITES
bpopelar Posted February 24, 2008 Posted February 24, 2008 Hi, I just duplicated my live site so I can have a test site to play around on. I copied the files into another folder, and also duplicated the MySQL database. How ever, when i go to the test site www.test.com/test/ if I click on any link it takes me to the equivilant page of the Live site. ie; it goes back to www.test.com/ I couldn't find any settings in the back end of admin. What am i missing? Thank you, cheers. You need to edit includes/configure.php and admin/includes/configure.php to point to the new test site and associated database. If you are sharing the domain name with the live site, you will probably need some rewrite rules to perform some magic. I have my test site as a sub-domain of my live site (i.e., my live site is www.mystore.com and my test site is test.mystore.com). Each site is in a separate directory structure on the server and re-write rules hide the sub-directory structure from the real world. Ben
fszone Posted February 25, 2008 Author Posted February 25, 2008 Hi bpopelar, Thanks! With your help I managed to get a 2nd site working on the same hosting & same domain (I pointed a subdomain to the test directory, although I never had to re-write any rules?) For anyone else, this is what I did to create a duplicate osCommerce site: • Copied all the files of my existing osCommerce site to a new folder named "test" (/home/MYSITE/public_html/test/) • Created a sub-domain, "test.YOURSITE.COM" and pointed it to the test folder. • Created a backup of the MySQL database (through PhpMyAdmin) • Created a new MySQL database through cPanelX called test • Using PhpMyAdmin, I imported the backup MySQL database into the new empty database. • I also edited the files /test/configure.php /test/includes/configure.php /test/admin/includes/configure.php I edited the lines starting with: define('HTTP_SERVER', ' define('HTTPS_SERVER', define('HTTP_COOKIE_DOMAIN' define('HTTPS_COOKIE_DOMAIN' define('DIR_FS_CATALOG', define('DB_DATABASE', ' (Note: the configure.php files ARE NOT all the same. Make sure you edit each one individually) And bang, that was it! DOGECOIN GAMBLING SITES :P LITECOIN GAMBLING SITES
Recommended Posts
Archived
This topic is now archived and is closed to further replies.