Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Domain or IP???


tectonic

Recommended Posts

I was wondering if there was a way that you can change the domain. I installed oscommerce before the domain name was present. Now when you click on any link in the shop it points to the IP address/.... and not the domain name. :(

 

I'm not sure how to change this. I am hosting this site and the IP will be a shared IP. I gave the domain a dedicated IP for the time to install oscommerce. Now I will need to change the IP but I am worried that when you click on a link it will look for the IP and not the domain name. Any help would be great. Thanks.

Link to comment
Share on other sites

*******UPDATE*******

 

I was able to figure it out.

 

If you go to /shop/includes/configure.php

 

Edit the configure.php file and it has all parameter settings in it. Just change the domain name or IP in my case and all was fine. Nothing was affected on the site. No down time!!! Awesome.

Link to comment
Share on other sites

Ok... I edited the configure.php so that all of the links changed on the web site. The only thing that did not change was the admin page. It still pointed to the IP. So I went into the admin/includes/ folder and found the configure.php file in there and did the same thing. It has a string to point to http://DOMAIN OR IP ADDRESS.

 

All I did was take out the IP address and put in the domain. Now I get the following error.

 

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/oscom/public_html/shop/admin/includes/configure.php:50) in /home/oscom/public_html/shop/admin/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/oscom/public_html/shop/admin/includes/configure.php:50) in /home/oscom/public_html/shop/admin/includes/functions/sessions.php on line 67

 

Please help.

Link to comment
Share on other sites

Thank you nebng!!!!

 

It appears to have been the 9 spaces that were after ?>

 

Once I took them out all was fine.

 

ExtremeOne, I was unable to fine 3 places to edit the IP to Domain Name. I only saw 2 places.

 

define('HTTP_SERVER', 'http://www.DOMAINNAME.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.DOMAINNAME.com');

 

I'm not using an SSL. Are the httpS entries what you were talking about???

 

 

Thanks again folks.

 

:)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...