Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving domain - installing OSC with temp domain


tntwrk

Recommended Posts

I am moving a domain to a new server and am installing a fresh copy of OSC. I cannot redirect the nameservers for the new server until my install of OSC is complete on that server.

 

The new server was setup for the originaldomain.com name and has a temporary url name like d15874.t50.fish123.com (not the actual domain). (Since the nameservers have not been changed yet to point at this server, I have to use the temporary URL to hit the site with the browser/ftp, etc). In the catalog folder I changed the config.php to reflect the temporary url. (instead of originaldomain.com, the settings read d1588274.t50.fishnet123.com). I can now go to http://d1588274.t50.fishnet123.com/catalog and the store works fine.

 

Problem is Admin. When I go to admin using the url http://d1588274.t50.fishnet123.com/admin (not the actual URL) admin pops up and I am fine until I click on any link, such as Categories - Contents - then it goes to the original URL - http://originaldomain.com/admin/categories...ted_box=catalog (and gives me a 404 error).

 

What can I change to make the admin/index.php temporarily link to http://d1588274.t50.fishnet123.com instead of http://originaldomain.com. It appears that the variable in index.php is tep_href_link. Where is the definition for that - if that is what I need to change?

 

I realize my explanation here may be a little confusing. If I need to elaborate with a clearer example, please let me know.

 

Thanks in advance for any help.

 

Michael

Link to comment
Share on other sites

I am moving a domain to a new server and am installing a fresh copy of OSC.  I cannot redirect the nameservers for the new server until my install of OSC is complete on that server. 

 

The new server was setup for the originaldomain.com name and has a temporary url name like d15874.t50.fish123.com (not the actual domain).  (Since the nameservers have not been changed yet to point at this server, I have to use the temporary URL to hit the site with the browser/ftp, etc).  In the catalog folder I changed the config.php to reflect the temporary url.  (instead of originaldomain.com, the settings read d1588274.t50.fishnet123.com).  I can now go to http://d1588274.t50.fishnet123.com/catalog and the store works fine.

 

Problem is Admin.  When I go to admin using the url http://d1588274.t50.fishnet123.com/admin (not the actual URL) admin pops up and I am fine until I click on any link, such as Categories - Contents - then it goes to the original URL - http://originaldomain.com/admin/categories...ted_box=catalog  (and gives me a 404 error).

 

What can I change to make the admin/index.php temporarily link to http://d1588274.t50.fishnet123.com instead of http://originaldomain.com.  It appears that the variable in index.php is tep_href_link.  Where is the definition for that - if that is what I need to change? 

 

I realize my explanation here may be a little confusing.  If I need to elaborate with a clearer example, please let me know.

 

Thanks in advance for any help.

 

Michael

Link to comment
Share on other sites

Sorry. I did not mean to do the quote in the reply above. Still not sure what happened.

 

Let me make my question a little more simple.

 

On the admin screen, all of the links show the domain name and the rest of the path (depending on the link). For example:

 

Link for Catalog, Contents shows to be http://mydomainname.com/admin/categories.p...ted_box=catalog

 

Link for Customers, Customers shows to be http://mydomainname.com/admin/categories.p...d_box=customers

 

Etc, etc

 

What can I change so the path will read a temporary url such as: http://tempdomainname.com/admin/catefories...d_box=customers?

 

Thanks in advance for your help.

 

Michael

Link to comment
Share on other sites

Thank you for your response.

 

I did look at admin/includes/configure.php when I was attempting to make the changes. It currently has no server settings.

 

Here is what mine looks like:

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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 our database connection

define('DB_SERVER', '');

define('DB_SERVER_USERNAME', 'mysql');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

 

If is is not getting the information from this file where does it come from.

 

Again, thank you for your reply.

 

Michael

Link to comment
Share on other sites

I changed the first line from:

define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 

TO:

 

define('HTTP_SERVER', '67.15.124.152'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 

With no effect. Using a temp URL instead of the IP address did not make any change either.

 

Changing other settings merely placed the IP address in front of the domain name in the links from the Admin Menu

 

??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...