Welcome Guest, Not a member yet? Register   Sign In
is folder / path password protecion with htaccess possible in CI?
#2

[eluser]JoostV[/eluser]
Hi Stef,

Quick and extremely dirty hack:
-create the folder you need
-password protect it
-place an CI index.php file into it
-adjust the application and system path in that index.php so they point to your existing CI installation
-adjust the password .htaccess so it does url rewriting as well
-you're good to go

Although, it would be worth the time to implement an (existing) auth system in your CI app, that you can use over and over again. It will make your app so much more scalable.

EDIT: Forget that. Just create a folder and protect it with htacess. Then create a controller with the same name as taht folder. That's it.


Messages In This Thread
is folder / path password protecion with htaccess possible in CI? - by El Forum - 10-23-2009, 12:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB