Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to get the catalog to work on doc root


sowens

Recommended Posts

Hi

 

I need to get my catalog to display on my home page.

Scenario

 

Root listing

index.html

catalog

...

...

 

I want to rename the catalog/default.php to index.php and move it up out of the catalog directory to the doc root directory. I have tried the following.

<li> linking the file, doesnt work

 

What I want to know is,

can I move the catalog contents to the root area and rename the default.php file to index.php and will this solve the issue quickly. I am on a linux box so moving is easy.

 

Regards

Sean

Sean Owens

Link to comment
Share on other sites

You also need to change a line in application_top.php from

 

 define('FILENAME_DEFAULT', 'default.php');

 

to this:

 

 define('FILENAME_DEFAULT', 'index.php');

 

Mark

 

Hi

 

thanks for the prompt reply

 

FYI

if you do this mod you need to change all default.php files to index.php. Its easier just to link the index.php to the default.php.

 

Now I am still looking to see if any one has moved the catalog and its parts to the doc root of their webserver. Any takers ?

 

Regards

Sean Owens

Sean Owens

Link to comment
Share on other sites

FYI  

if you do this mod you need to change all default.php files to index.php. Its easier just to link the index.php to the default.php

 

I'm not following you here. If you make that change to application_top all references in the various scripts to FILENAME_DEFAULT will call index.php

 

By the way, I have moved my catalog to root ...

 

Mark

Link to comment
Share on other sites

FYI  

if you do this mod you need to change all default.php files to index.php. Its easier just to link the index.php to the default.php

 

I'm not following you here. If you make that change to application_top all references in the various scripts to FILENAME_DEFAULT will call index.php

 

By the way, I have moved my catalog to root ...

 

Mark

 

Hi Mark,

 

just did the ould RTFM ;-) in the http://guide.oscdox.com site, should have done that ages ago.

 

Sorted now, catalog showing on the root now.

 

On the previous issue

yes but there are other directories below catalog that have files called default.php. They need to be copied too. It is just easier to link the default.php to the index.php. I have a bad habit of touching code last.

So that is where I am comming from.

 

Thanks for all the help.

 

BTW for others looking at the new guide.oscdox.com site it does not work with netscape 7. I had to be dragged kicking and screaming to some other browser. And I could view the site perfecty.

 

Regards and thanks for the help.

 

This is a brilliant community, such good will and helpfulness.

Sean Owens

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...