Issue
I have folder /admin/index.php how to restrict access to that folder except logged user. I try to restrict access with .htaccess but it restrict access at all
Solution
On your /admin/index.php are you checking these things:
- Is the user logged in? - If not, redirect them to the login page.
- Is the logged in user an Admin? - If not, redirect them to another page.
Seems like the logical way to tackle this.
Answered By - l0gic Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.