Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cannot get the .htaccess to work


Lauren773

Recommended Posts

Posted

My oscommerce is on win2k and I cannot get the .htaccess or the .htpasswrd to work for my admin side of my site. Because I am on win2k, I am confused as to what to put for the AuthUserFile. Someone please clearify this for me. I feel like I have tried everything. :cry:

Posted

Hi!

I hade it on a w2k pro computer and got it to work, then I moved it to another (w2k server) and cant get i right.

 

I put both files in same catalog (admin)

 

my.htaccess looks like this

AuthType Basic

AuthUserFile "E:Appservwwwtestcatalogadmin.htpasswd"

AuthName "Locked"

require valid-user

 

and the .htpasswd just the username och password in it.

 

But it dosent work :(

 

But you can try if you want :)

 

/Anneli

Posted

Are you using Apache or IIS as your webserver?

 

Any .ht* file is Apache only and will not work with IIS.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

I am using Apache, i got it to work on my other computer as well.

 

Lauren773 i dont know :(

 

/Beridox

Posted

Thanks for the reply. Unfortunately I am using IIS and still cannot get it to work. Does anyone know what my alternative choices are for securing the admin folder since I cannot get the .htaccess and .htpasswrd to work.

Posted

As I stated before, .ht files are Apache only and will not work with IIS.

 

The easiest thing to do would be to download and install Apache.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted
Gotcha!   :wink: So is this my only choice?  Everyone on here is using Apache and not IIS?

 

No, installing and using Apache vice IIS is not your only choice.

 

You could wade through an IIS Administrator's manual to determine the corresponding settings.

 

Since my server is *nix with Apache, I did not think that it made sense for my development platform to be much different. I am running Win2K SP3 with Apache 1.32 and have not had any problems. In fact, my system is much more stable since disabling IIS.

 

You will find more people that can help you with Apache than IIS as well.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Archived

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

×
×
  • Create New...