Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

IP Address vs. Domain Name


dmcycloid

Recommended Posts

Hi all-

 

Trying to get the store to work well while I'm running our new server directly off our static IP address. However, OSCommerce is configured for absolute addresses that take page links, images, etc., to what the domain name WILL be in a few days when I make the change.

 

So, I have to constantly replace the domain name with the IP address manually and images show up as broken. Ideas?

 

How can I make the links confiure to the IP address? It's got to just be one line in a config file somewhere right?

 

many thanks,

Keith

Link to comment
Share on other sites

Just edit your config files to resolve the IP address instead of the domain name. When you go live, after dns is over just switch it back the domain name. I do it all the time.

 

hth

 

TJ

 

 

 

Hi all-

 

Trying to get the store to work well while I'm running our new server directly off our static IP address.  However, OSCommerce is configured for absolute addresses that take page links, images, etc., to what the domain name WILL be in a few days when I make the change.

 

So, I have to constantly replace the domain name with the IP address manually and images show up as broken.  Ideas?

 

How can I make the links confiure to the IP address?  It's got to just be one line in a config file somewhere right?

 

many thanks,

Keith

Link to comment
Share on other sites

catalog/includes/configure.php

 

and

admin/includes/configure.php

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.mysite.net'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mysite.net'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?


change  www.mysite.net to your ip address.

 

Better back up your config files first though.

 

LMK if you need a hand.

 

TJ

 

Which config files?  Where are they located?  Thanks for the help, big time.

Keith

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...