Welcome Guest, Not a member yet? Register   Sign In
using .htaccess on a single control/view
#1

[eluser]MaxPar[/eluser]
I've currently got a CI application living at:

ci/

So when I go to

ci/index.php

it loads a default page, and of course browsing to the pages:

ci/index.php/viewstuff or
ci/index.php/editstuff

load pages using views/models called viewstuff.php and editstuff.php , respectively. However, I also have a page:

ci/index.php/admin

that I would like to put a password on. That would also mean that subpaths of admin, like

ci/index.php/admin/page1
ci/index.php/admin/buy_some_ice_cream


would also be covered by the same password protection as the admin page.

Usually I would use an htaccess file for this, but since 'admin' is not a file - it's a program that gets loaded - I don't know how to stick a .htaccess file on it. Does anyone know how to do this?




Theme © iAndrew 2016 - Forum software by © MyBB