Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

DirectoryIndex & changing default.php name


mlulm

Recommended Posts

Posted

I moved the shopping cart to the root directory. Then I renamed default.php to electronics.php and made all the changes to get it working. It works fine when called directly. But I wanted the root to jump to it, so I had my server adminstrator direct the DirectoryIndex to it. Now when we call it with the root url it crashes calling the file name which now has cloned itself onto itself numerous times.

Posted

You only need to change it on the server (as you have done). Then open up application_top.php and change;

 

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

 

to

 

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

 

Upload your new application_top.php and there we are.

 

You've gone down the hard route first. Always take the route of least resistance ;)

Posted

Re-read your post. Have you done the above ? Just use a .htaccess in your root, rather than have the admin do it...

 

or use a index.php with a PHP header...easy.

Posted

Yes I had already done the application_top.php change.

I probably should have done it with .htaccess

 

The admin retried it and it started working.

Thanks

Posted
The admin retried it and it started working.

 

Did he tell you why it did not work ? This would be useful to know...

 

Thanks.

Archived

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

×
×
  • Create New...