This is a discussion on Default.php or index.php? within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hi, The server that I am with requires that the home page is defined as index.php or html etc not ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, The server that I am with requires that the home page is defined as index.php or html etc not default. (I have tried default.php) but it does not work. How can I change defult.php to index.php without getting file not found errors? Thanks in advance, |
|
#2
| |||
| |||
| Hi there, Here are 3 different ways to do this, but more than likely, #3 is the one you want. Choose ONLY ONE of these three, DO NOT do all three. #1) If you have control of the server, add default.php to the DocumentIndex directive in your web server's config file (most common, but may not be the same for all). #2) If you don't have control, but do have shell access (with telnet or ssh, etc.), then create a symbolic link with this: Code: ln -s default.php index.php Code: define('FILENAME_DEFAULT', 'default.php');
Code: define('FILENAME_DEFAULT', 'index.php');
- James |
|
#3
| |||
| |||
| Thanks alot for that James. I have posted another semi related question to this. I was going to put it in here but it is a different issue so I started a new thread. Thanks again. |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| index.html the default page help | ZARZOR | osCommerce 2.2 Installation Help | 10 | 01-23-2005 07:19 PM |
| make catalog/index.php the default homepage of my website... | ReginaStelling | osCommerce 2.2 Modification Help | 10 | 09-20-2004 01:00 PM |
| Changing Index | wudsqrl | osCommerce 2.2 Modification Help | 1 | 01-26-2004 06:47 AM |
| Default.php/index.php | ativan | osCommerce 2.2 Installation Help | 6 | 11-19-2002 03:27 PM |