n000bie Posted October 27, 2009 Share Posted October 27, 2009 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/179146-htaccess-folder-protection-not-working/ Share on other sites More sharing options...
divinequran Posted November 2, 2009 Share Posted November 2, 2009 check the path from of the file you given. AuthUserFile /mysite/osc_users I think the problem is with the file path and permission. Quote Link to comment https://forums.phpfreaks.com/topic/179146-htaccess-folder-protection-not-working/#findComment-949380 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.