Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem loading images in include folder


XaviGracia

Recommended Posts

Posted

Hi, i have a problem that i didn't have previously until i change from a windows installes to a linux one...

 

Any image that i try to load that is inside the include folder in the catalog doesn't get loaded (even if i try to load it directly, not inside the page !!!)

 

I have checked that if i remove the .htaccess file in the include folder, all goes ok...

 

But i don't understand why happens this...

 

The code inside the htaccess file is this:

 

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

 

(and a lot of comments, of course)...

 

There's any solution to this (it's easy to remove the .htaccess file but i would like to the impete the access to the .php files inside the include folder).

 

Thanks in advance

 

p.s

Btw, Apache 2 and PHP 4.... All seems to work ok save this. (and some missing files with ?'s....)

Posted

Try adding a new instruction to that file:

<Files *.jpg *.gif>
Order Deny,Allow
Allow from your_website_ip_address
Deny from all
</Files>

 

Change 'your_website_ip_address' to either the shared ip address of the server your site is on, or to a dedicated ip address if your site has one. Not certain this will work.

 

Vger

Posted

It doesn't work... :-(

 

I would take a look at all the htaccess stuff in apache.org... I would try to tell something.

 

Oh, and thanks a lot Vger... :-)

Archived

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

×
×
  • Create New...