Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php problem!!!


Guest

Recommended Posts

Posted

Hiya

 

Ive has my site now for 6 months but now wanted to get rid of my index.html page. This page was original there as a short descripton and image, you clicked on the image to goto the shop etc....

 

I have now got rid of the index.html page, so that my shop will load direclty from www.computek2000.co.uk

 

but I get this error:

 

Warning: main(includes/application_top.php): failed to open stream: No such file or directory in /content/StartupHostPlus/c/o/www.computek2000.co.uk/web/index.php on line 13

 

Warning: main(includes/application_top.php): failed to open stream: No such file or directory in /content/StartupHostPlus/c/o/www.computek2000.co.uk/web/index.php on line 13

 

Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /content/StartupHostPlus/c/o/www.computek2000.co.uk/web/index.php on line 13

 

Any suggestions??

 

If I goto www.computek2000.co.uk/catalog then the shop loads no probs like before.

 

How can I get it to load straight from www.computek2000.co.uk??

 

I do have the index.php file in my root directory....

 

Cheers

 

Jub

Posted
you have to move your catalog contents to your website's root dir and then update your configure.php files

 

The admin configure.php and catalog configure.php files??

 

If what do I modify them to? I had trbl with those 6 months ago, dunno if I can do it again! lol

 

Jub

Posted
you have to take all the folders and files inside of your catalog folder and move them to your websites root dir or httpdocs directory.... whichever way your website is setup

 

after that

 

then you update your configure.php files to note the change

 

I havnt got a clue how to do that!

 

Heres my catalog configure.php file:

 

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

define('HTTPS_SERVER', 'https://secure.hosts.co.uk/~computek2000.co.uk'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.computek2000.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'https://secure.hosts.co.uk/~computek2000.co.uk');

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

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

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

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

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

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

How do I configure that? do I change `/catalog/` to `/web/`?? etc

 

Cheers

 

Jub

Posted

ive sorted it, just put a redirect into the index.html file....

 

Only worries I have is that of indexing on the search engines? Will this be a problem???

 

Jub

Archived

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

×
×
  • Create New...