Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

URLs do not include my domain name


NicScraps

Recommended Posts

Posted

Hi -

 

My domain name is fiberstoinspire.com . My DNS information has been successfully updated so that it refers to my current web host, StartLogic.

 

StartLogic has an option to do the osCommerce installation for you, so that is how I installed. Then, I made my site modifications and added some contributions. So, now I have basically finished configuring my osCommerce website, and I am ready to publish it.

 

Although the program was initially installed at /public_html/oscommerce/catalog/ , based on some information I read here about search engine optimization, I moved my osCommerce shop up two levels to be at /public_html/. [Any reasons this would be a bad idea?]

 

My web host places a default index.html file in the /public_html/ directory (so that your domain is parked until you replace it). If I go ahead and delete this default index.html file, I can successfully pull up the web page that is defined by the osCommerce index.php file (in other words, I can put fiberstoinspire.com into my browser, and it pulls up the index.php page, as it should).

 

The problem is, when I click on any link from that first page, the URL that shows at the top no longer has

 

http://fiberstoinspire.com/etc

 

as the first portion. Instead, I see:

 

http://st122.startlogic.com/etc

 

in the browser window. This is the actual physical location on the server, as I understand it.

 

Right now, I still have their default index.html file loaded, but you can get to my site by putting fiberstoinspire.com/index.php in your browser (if you want to go see what I mean about the URLs).

 

Shouldn't all of my web page URLs begin with fiberstoinspire.com ? I have browsed dozens of live osCommerce shops, and they all DO have their domain name as the first portion of the visible URL in the browser window as you click through links.

 

For some of the sites, I notice that when you access the SSL secured pages (usually just checkout and account information), the URL *does* switch from the domain name to something analogous to the https://st122.startlogic.com/ portion I am seeing for my secure pages. I think this has something to do with shared SSL on some servers, and I probably can't do anything about that unless I get my own SSL certificate. Anyhow, it is OK with me if the URL switches like this when you go to my secure pages, but the rest of my web pages need to have my domain name as part of the URL!

 

I've requested help from my web host, and I'm still hoping they will offer something, but they don't seem to know much about osCommerce...

 

Here is what I have in my /includes/configure.php file:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://st122.startlogic.com');

define('HTTPS_SERVER', 'https://st122.startlogic.com');

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'fiberstoinspire.com');

define('HTTPS_COOKIE_DOMAIN', 'st122.startlogic.com/~fibersto');

define('HTTP_COOKIE_PATH', '/~fibersto/');

define('HTTPS_COOKIE_PATH', '/~fibersto/');

define('DIR_WS_HTTP_CATALOG', '/~fibersto/');

define('DIR_WS_HTTPS_CATALOG', '/~fibersto/');

define('DIR_WS_IMAGES', 'images/');

 

and so on

 

This is from the /admin/includes/configure.php file:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'https://st122.startlogic.com');

define('HTTP_CATALOG_SERVER', 'http://st122.startlogic.com');

define('HTTPS_CATALOG_SERVER', 'https://st122.startlogic.com');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/fibersto/public_html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/~fibersto/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/fibersto/public_html/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/~fibersto/'); // absolute path required

define('DIR_FS_CATALOG', '/home/fibersto/public_html/'); // absolute path required

 

and so on

 

These two files were set up for me when the web host did the installation. Is my URL issue because these files are not correct? I really don't know much PHP, and so far most of my experimenting with these .php docs results in *bad stuff* happening. :blush: I've had to restore many, many backups along the way...

 

Thanks so much for any assistance you can offer -

 

Nicole

Posted

You've pretty much already identified the problem. :)

 

In those configure.php files just replace the host's address with yours and all should work as desired. Although, for first test purposes maybe just leave the "HTTPS" entries as is.

 

For example, this:

 define('HTTP_SERVER', 'http://st122.startlogic.com');
define('HTTPS_SERVER', 'https://st122.startlogic.com');

would become this:

 define('HTTP_SERVER', 'http://fiberstoinspire.com');
define('HTTPS_SERVER', 'https://st122.startlogic.com');

Archived

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

×
×
  • Create New...