Problem with htaccess password protecting a single page not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Problem with htaccess password protecting a single page not working (/showthread.php?tid=57731) |
Problem with htaccess password protecting a single page not working - El Forum - 04-06-2013 [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! |