Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess problem


FuRiOuS1

Recommended Posts

Posted

Hi, i am having a few problems with the .htacces files for oscommerce. My first problem is with the .htaccess file in /catalog/ .

 

If i do not comment out...

<IfModule mod_setenvif.c>
 <IfDefine SSL>
   SetEnvIf User-Agent ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

 

then i get an internal server error 500.

i do not know why that is happening.

 

my second problem is with the .htaccess in /catalog/includes/ .

 

if i do not comment out this...

<Files *.php>
Order Deny,Allow
Deny from all
</Files>

 

then i cannot access any files beyond /catalog/includes/ via HTTP, no matter what filetype. that means the buttom image files can't be accesses via HTTP.

 

if someone could shed some light on how to fix these two problems, i would appreciate it.

 

Thank You

Posted

I once had that problem when I uploaded it as a file that was made on a Mac (so the file had Mac line endings). When the ISP people looked at it with vi, they saw those line endings as control-R (I think). Once those were removed the file worked again. As long as the .htaccess file was only 1 line, no problem.

Posted

for this to work, you must include the parameter 'Limit' to the AllowOverride configuration

 

Example:

 

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

AllowOverride Limit

 

with that in mind, are you using Apache or IIS>?

Archived

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

×
×
  • Create New...