Jump to content

htaccess folder protection not working


n000bie

Recommended Posts

I am trying to protect a folder (admin) through htaccess but it gives 500 internal server error i got this code

 

RewriteEngine on

RewriteRule ^systems$ index_systems.php

htpasswd -cb osc_users admin admin123
chmod 644 osc_users
cd /testsite/administrator

 

and this one is from .htaccess inside admin folder

AuthName "admin"
AuthType Basic
AuthUserFile /mysite/osc_users
require valid-user

 

Any help ?

Link to comment
https://forums.phpfreaks.com/topic/179146-htaccess-folder-protection-not-working/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.