Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems setting mysite.com to mysite.com/catalog/default.ph


Elmo

Recommended Posts

Hi, when I installed the script, I uploaded the admin folder in the root directory instead of under the catalog folder and now I feel very stupid that I ddi that because I want to set it up such that when people go to www.mysite.com, it'd show the storefront (www.mysite.com/catalog/default.php) and I cannot do that. Now when I go to www.mysite.com, it shows the error page (forbidden) instead and I really hope someone can shed some light on this because I don't know how to fix this. This is what I did:

 

 

Step 1 - Rename catalog/default.php to index.php

 

Step 2 - Rename catalog/includes/languages/YOUR LANGUAGE/default.php to index.php

 

Step 3 - Open catalog/includes/application_top.php and change define('FILENAME_DEFAULT', 'default.php');

to

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

 

Then I removed the original index.html file in the root directory and I did this:

 

1. Create a plain text file using a text editor.

2. Add this statement : DirectoryIndex index.php index.htm index.html

3. Save the file as .htaccess (note the period before the h)

4. Upload it to root directory

 

but it does not work, it shows the error page "forbidden" instead. I suspect that it's because I uploaded the admin folder in the root directory instead of under the catalog folder when I installed the script and because of the fact that there's index.php file in the admin folder so that's why I got the error page when I go to www.mysite.com

 

Can anyone please help me? Should I just reverse these 3 steps:

 

Step 1 - Rename catalog/default.php to index.php

 

Step 2 - Rename catalog/includes/languages/YOUR LANGUAGE/default.php to index.php

 

Step 3 - Open catalog/includes/application_top.php and change define('FILENAME_DEFAULT', 'default.php');

to

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

 

to change index.php back to default.php and then

 

1. Create a plain text file using a text editor.

2. Add this statement : DirectoryIndex default.php index.php index.htm index.html

3. Save the file as .htaccess (note the period before the h)

4. Upload it to root directory

 

Should I do the above now?

 

On a different note, I am also very confused about one instruction at http://guide.oscdox.com/Installation_Guide...nstructions.htm where it says

 

<start of quote>

 

"Add to your DirectoryIndex statement and include the following : default.php index.php . This can be done in the Apache httpd.conf file if you have root access, or can be done in a .htaccess file in your /catalog dir.

 

This is the .htaccess method for adding the DirectoryIndex statement.

 

1. Create a plain text file using a text editor.

2. Add this statement : DirectoryIndex default.php index.php index.htm index.html

3. Save the file as .htaccess (note the period before the h)

4. Upload it to your /catalog directory"

 

<end of quote>

 

There's already a .htaccess file under the catalog folder (see below) so if I uplaod another .htaccess file in that folder, it would overwrite the other .htaccess file:

 

# $Id: .htaccess,v 1.1 2002/07/21 23:41:41 hpdl Exp $

#

# This is used with Apache WebServers

#

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

#

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

# AllowOverride configuration

#

# Example:

#

#<Directory "/usr/local/apache/htdocs">

# AllowOverride Limit

#</Directory>

#

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

# apache/conf/httpd.conf file)

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*"

nokeepalive ssl-unclean-shutdown

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

Best regards,

 

Elmo

Link to comment
Share on other sites

Can't help with the first bit but about the .htaccess file - don't overwrite what you have.

 

Just download the .htaccess file to your computer then open in a text editor and insert the line as directed (DirectoryIndex default.php index.php index.htm index.html) after what is already in there

 

then save as .htaccess and reupload.

 

But I think you have to solve your first problem first before it will work.

 

 

Jen

I haven't lost my mind - I have it backed up on disk somewhere.

Link to comment
Share on other sites

Elmo,

 

Please take a moment to read the forum FAQ/rules. Crossposting is uneccessary and against the rules.

 

The answer to your question has been posted in the other thread.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...