Problem with htaccess password protecting a single page not working |
[eluser]Unknown[/eluser]
I've been struggling for a couple of hours and I don't seem to find the answer. I've successfully protected 3 pages (called modify, activate and delete) inside my Codeigniter installation using htaccess so that it can't be seen unless you have a username and password. It works if I write the URL as: http://mypage.com/activate but it doesn't as http://mypage.com/?activate http://mypage.com/index.php?activate This is my htacess configuration (I'm currently using a Godaddy shared hosting) Code: RewriteEngine on And this is my password protection segment inside the same htacess Code: AuthUserFile .htpasswd Is there any way to solve this? Thank you! |
Welcome Guest, Not a member yet? Register Sign In |