Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

htaccess files


Guest

Recommended Posts

Hi there. Well, I switched from a Windows server to a Linux server and the install was like a dream! Everything is working well and the store is coming along well.

 

I need help password protecting my files. I have read through the posts on this as well as visiting the apache web site. I have created an encrypted password and saved it as a .htpasswd file. I see that there is an htaccess file already in the Admin folder.

 

I don't understand what to do next. Where do I put the htpasswd file and do I create a new htaccess file or modify the one that is already in Admin? I am unable to password protect my files from my Control Panel and so I need to create/modify this htaccess file myself.

 

I just can't figure this out.

 

Please help.. Thanks!

Annabelle

 

 

 

 

 

# $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $

#

# This is used with Apache WebServers

#

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

# the AllowOverride configuration

#

# Example:

#

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

# AllowOverride Options

# </Directory>

#

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

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

#

# AcceptPathInfo On

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

#

#<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

# php_value register_globals 1

#</IfModule>

Link to comment
Share on other sites

The .htaccess file must be named ".htaccess" and located in the administration directory.

 

The ".htpasswd" file will be named and directed according to the .htaccess file.

 

yes, thank-you but I still am not sure what to do!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...