ChaoticResolve Posted February 28, 2007 Share Posted February 28, 2007 At the mo I want when user requests http://example.com/protected to be authenticated and if they pass rewrite the folder protected to /home/hidden_files. I tried this but when they authenticate they are redirected to hidden_files instead of displayed them? AuthType Basic AuthUserFile /home/protected/.htpasswd AuthName "Members Area" require valid-user RewriteEngine on RewriteRule ^(.*)$ /home/hidden_files any ideas? Link to comment https://forums.phpfreaks.com/topic/40579-authentication-and-mod_rewrite/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.