Jump to content

Authentication and Mod_Rewrite


ChaoticResolve

Recommended Posts

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

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.