osCmax v2.5 User Manual
Results 1 to 3 of 3

Default.php or index.php?

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 ...

      
  1. #1
    New Member
    Join Date
    Feb 2003
    Posts
    16
    Rep Power
    0


    Default Default.php or index.php?

    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. #2
    Lurker
    Join Date
    Apr 2003
    Posts
    1
    Rep Power
    0


    Default

    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
    #3) If you don't have control, AND you don't have shell access, then rename default.php to index.php and change includes/application_top.php (around line 64) from this:
    Code:
    define('FILENAME_DEFAULT', 'default.php');
    to this:
    Code:
    define('FILENAME_DEFAULT', 'index.php');
    Hope it helps,
    - James

  3. #3
    New Member
    Join Date
    Feb 2003
    Posts
    16
    Rep Power
    0


    Default

    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.

Similar Threads

  1. index.html the default page help
    By ZARZOR in forum osCommerce 2.2 Installation Help
    Replies: 10
    Last Post: 01-23-2005, 07:19 PM
  2. make catalog/index.php the default homepage of my website...
    By ReginaStelling in forum osCommerce 2.2 Modification Help
    Replies: 10
    Last Post: 09-20-2004, 01:00 PM
  3. Changing Index
    By wudsqrl in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-26-2004, 06:47 AM
  4. Default.php/index.php
    By ativan in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 11-19-2002, 03:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •