19 Jun 2013
Support Center
»
Knowledgebase
»
How to configure osCommerce to work with a new domain?
How to configure osCommerce to work with a new domain?
Solution
In order to configure osCommerce to work properly with another domain, you should modify the two configure.php files in includes/ and admin/includes/ folders to reflect the new domain.
The settings that should be changed in includes/configure.php are:
HTTP_SERVER - you should change this to your new domain name, e.g.
http://newdomain.com
:
define('HTTP_SERVER', 'http://newdomain.com');
HTTP_COOKIE_DOMAIN - again, this should be changed to reflect your new domain name:
define('HTTP_COOKIE_DOMAIN', 'newdomain.com');
If you are using SSL you should also modify:
HTTPS_SERVER - for example:
define('HTTPS_SERVER', 'https://newdomain.com');
HTTPS_COOKIE_DOMAIN - set this to:
define('HTTPS_COOKIE_DOMAIN', 'newdomain.com');
In admin/includes/configure.php you should modify:
HTTP_SERVER - you should change this to your new domain name, e.g.
http://newdomain.com
:
define('HTTP_SERVER', 'http://newdomain.com');
HTTP_CATALOG_SERVER - again, this should be changed to your new domain name:
define('HTTP_CATALOG_SERVER', 'http://newdomain.com');
If you are using SSL, you should also change HTTPS_CATALOG_SERVER to:
define('HTTPS_CATALOG_SERVER', 'https://newdomain.com');
Article Details
Article ID:
104
Created On:
16 Feb 2011 01:52 AM
This answer was helpful
This answer was not helpful
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Image verification required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Fullname:
Email: (Optional)
Comments:
Back
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Article Options
Add Comment
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
|
News
|
Downloads
Language:
English (U.S.)
Help Desk Software
Help Desk Software By Kayako eSupport v3.60.03