Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default page Question?


brewbeer

Recommended Posts

Posted

I run apache 1.3 and dumbfounded by how the default web page is assigned. It just brings up my htdocs/directory. I need to turn file view off and default page to index.php. This is more apache I think. any help would be grateful.

"Chooca ma blah blah"

Posted

Just edit the .htaccess file located in your main HTML directory. If you do not have this file, create it.

 

To change the default page, either edit the existing DirectoryIndex line or add the following:

 

DirectoryIndex index.html index.php default.php

 

Add whatever you want to the string and it will treat it as your startup page if it finds it in the directory.

I'd rather be flying!

Posted

This is what I have now. I put Directoryindex in there. dont know if its right. apache 1.3 on win 98

 

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

<Directory "c:/apache/apache/htdocs">

DirectoryIndex "index.php"

AllowOverride Options

</Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

 

#<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

# php_value register_globals 1

#</IfModule>

"Chooca ma blah blah"

Posted

nope... switched the override and directory index and comment everything out about directory. still no go.

 

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

<Directory "c:/apache/apache/htdocs">

AllowOverride Options

DirectoryIndex index.php

</Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

 

#<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

# php_value register_globals 1

#</IfModule>

"Chooca ma blah blah"

Posted

NM... i had to hack the conf. file instead. had no overrides turned on. thanks for the help i still needed the dirindex command.!!!!

"Chooca ma blah blah"

Posted

it is in the httpd.conf file, just add index.php to an allowable file

Archived

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

×
×
  • Create New...