Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with .htaccess


tomfmason

Recommended Posts

I have tried several times with this and got noting. do I have this set right? I am trying to set permissions for config.php and then the admin folder. Below is what i have in .htaccess in the includes file. Any help would be greatly apperciated.

 

I tried this first

 

# $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
AuthType Basic
AuthName "FORBIDDEN"
AuthUserfile "xampp/htdocs/users/www/oscommerce/owpt/includes/.htaccess"
Require valid-user
<Files>configure.php<Files>

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

 

No change so I tried

 

 $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 configure.php>
Order Deny,Allow
Deny from all
</Files>

 

I am completely lost. Any help would be greatly apperciated :(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...