Welcome Guest, Not a member yet? Register   Sign In
htaccess / admin area
#1

[eluser]Daniel_E9[/eluser]
I have a site built on codeigniter using the below htaccess file which removes the need for index.php:

Code:
RewriteEngine On
RewriteBase /domain.com
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

I have an admin section on a controller/view called admin. When I go to domain,com/admin I want it to ask for a password. Using the below htaccess in the admin folder doesn't work though - any ideas?

Code:
AuthType Basic
AuthName "Admin"
AuthUserFile /home/website/application/views/admin/.htpasswd

Thanks


Messages In This Thread
htaccess / admin area - by El Forum - 01-16-2010, 05:32 PM
htaccess / admin area - by El Forum - 01-18-2010, 05:27 AM
htaccess / admin area - by El Forum - 06-09-2011, 04:29 AM
htaccess / admin area - by El Forum - 06-10-2011, 01:34 AM
htaccess / admin area - by El Forum - 06-11-2011, 12:38 AM
htaccess / admin area - by El Forum - 06-11-2011, 12:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB