Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why both index.php and default.php files?


Guest

Recommended Posts

Why is there both index.php and default.php? They appear to be identically large files.

 

I tried to find the answer in docs and this forum. I found reference to changing default.php to index.php in application_top but then can I delete default.php? What about the language files?

 

If someone could point me to the info, it would really be appreciated.

 

My apologies if this is already posted somewhere.

Link to comment
Share on other sites

 

Thank you! I understand and have made the change. The problem is I still cannot find anything that says I can delete the index.php. I figured it out though!

 

Now I only have to edit the default.php file.

 

I still wonder why the two are there in the first place. There had to be some reason?

 

Thanks again

Link to comment
Share on other sites

The reason the catalog main file is called default.php is for a good reason.

 

Normally an apache webserver is setup to look for the index file in a set way. Normally default.php is at the end of the list.

 

This allows you to upload another index file, index.html or index.php to use as a 'splash' page.

 

As slash pages are not usually needed on admin, it's ok to use index.php as the intro page.

 

Ian

Trust me, I'm an Accountant.

Link to comment
Share on other sites

I'm a bit confused about the index.php => admin statements.

 

In my copy, there is a separate index.php in the admin/ folder.

 

I've been talking about the fact that I have an index.php AND a default.php in the same catalog folder.

 

But I do understand about the idea of using a splash page on index.php and using default.php to the software.

 

It seems to me the index.php should just point to (or include) the default.php.. instead of duplicating it.

 

In any case, I just deleted the index.php (not the one in admin/) and everything works great.

 

Thanks for all the replies. This is great!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...