Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problems with /includes/.htaccess


Guest

Recommended Posts

I have problems with the .htaccess file in:

mydomain.com/includes/

 

I had to rename it to be able to view for example the language flags and other pictures. Now I want to have the .htaccess file back to protect my files here.

Anyone who have a solution? It feels unsafe when people are able to reach my /includes/application_top.php and /includes/configure.php.

 

My osc is installed on a webhotell so I can't reach any apache config files.

 

Anyone who knows how to solve this?

 

 

 

 

 

Dennis

Link to comment
Share on other sites

This is the original .htaccess file. I tried with all kind of rights on it and the problem is that the .htaccess file works TOO good. It's NOT that the .htaccess file dosn't work. It stops people from reading the /includes/languages/english/flag.gif for example... also all the language related pictures, such as the buttons... So the webshop gets pretty ugly as soon as I add the .htaccess file

 

Is here anyone that have a working .htaccess file in /includes/ who can copy it into here???

 

Or someone that knows a solution?

 

 

 

 

Dennis

Link to comment
Share on other sites

# $Id: .htaccess,v 1.4 2001/04/22 20:30:03 dwatkins Exp $

#

# This is used with Apache WebServers

# The following blocks direct HTTP requests in this directory recursively

#

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

#

# Example:

#

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

# AllowOverride Limit

#

# 'All' with also work. (This configuration is in your apache/conf/httpd.conf file)

#

# This does not affect PHP include/require functions

#

# Example: #http://server/catalog/includes/application_top.php will not work

 

<Files *.php>

Order Deny,Allow

Deny from all

</Files>

 

 

 

that's what I have... all of my stuff works

Link to comment
Share on other sites

I just emailed my admin with the same problem and his reply was

---

Your directory was not setup to allow overrides using .htaccess files

---

 

:)

 

Mine work now.

 

Best regards,

~~Nathan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...