osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Default.php/index.php

This is a discussion on Default.php/index.php within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Ok, I'm coming from a Windows/IIS background and I am used to default.* being the main index page but I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-18-2002, 11:26 PM
New Member
 
Join Date: Nov 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ativan
Default Default.php/index.php

Ok, I'm coming from a Windows/IIS background and I am used to default.* being the main index page but I am curious as to why it's used in OSC instead of index.php as seems to be the norm in the Linux/Apache world. I'm not sure I even know how to change what the server uses for the index page (this is a shared, virutal hosting environment with Cpanel on Linux). Is that what I should be trying to do? I've just installed OSC for the first time (the guide was very helpful!) but I'm not sure about this.

David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-19-2002, 01:50 AM
Anonymous
Guest
 
Posts: n/a
Default

create an index.php file with the contents:
header("Location: default.php");
and that will redirect from index.php to default.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-19-2002, 05:26 AM
Anonymous
Guest
 
Posts: n/a
Default

If you want to change from default.php to index.php, there are a couple of things that need to be done.

first: rename default.php to index.php
second: open application_top.php (located in in /includes/)
look for this line:

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

change default to index.php

third: in each of your language directories is a file also named default.php you need to rename each one to index.php ( located in /includes/languages/english/ etc.

HTH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-19-2002, 12:03 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,314
Thanks: 67
Thanked 321 Times in 304 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Or easier still,

add this to your htaccess file:

DirectoryIndex default.php default.htm index.php index.htm index.html

Problem solved.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-19-2002, 02:50 PM
New Member
 
Join Date: Nov 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ativan
Default

Wow, thanks for all the great feedback. I used the .htaccess suggestion in the end and it worked like a charm (nice to know how to do it other ways however). I have to check into that htaccess file more, it seems very useful. Thanks again, onward I go .
David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-19-2002, 03:12 PM
New Member
 
Join Date: Nov 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ativan
Default

One additional question on this area. Through the Cpanel (I have a shared virtual account on Linux/Apache and limited but growing experience with the platform), I am able to turn off indexing of directories that don't have an index file. Unfortunately, it seems this is allowed by default. My quesiton(s): is that normal as the default and more important, is there a way to modify that nifty .htaccess file so that all the directories underneath will have the same setting (no index) or does that require a separate .htaccess in each directory in my case? Thanks again.

David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 11-19-2002, 04:27 PM
Member
 
Join Date: Oct 2002
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stan
Default

iirc, by default .htaccess directives apply not only to the directory the file is in, but also all subdirectories under it. So to answer your question, you won't need to add them to every directory!

-- stan c",)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 08: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 07:47 AM
Default.php or index.php? Dr_Evil osCommerce 2.2 Installation Help 2 04-17-2003 04:56 PM


All times are GMT -8. The time now is 02:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax