PDA

View Full Version : Adding a new Store Front



tac_cio
08-04-2007, 07:53 AM
I was recently upgraded to osCommerce v2.2 RC1. How do I get the index.php to point to the store front that I created? I have been looking in the Knowledge Base, but have not found anything. Any Help is greatly appreciated.

michael_s
08-04-2007, 09:39 AM
So you created an index.html page that you want to show instead of index.php?

Add this to .htaccess file:


DirectoryIndex index.html

This will tell the server to load index.html as the main page instead of index.php.

tac_cio
08-04-2007, 10:02 AM
Where do I put it in the file?

michael_s
08-04-2007, 10:04 AM
In your .htaccess file in your main public_html directory

tac_cio
08-04-2007, 10:08 AM
Under which part do I place it?

# $Id: $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# 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>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter

# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

# php_value session.use_trans_sid 0
# php_value register_globals 1

michael_s
08-04-2007, 10:19 AM
Now you are just being difficult ;)

Put it anywhere on its own line.