01-16-2010, 05:32 PM
[eluser]Daniel_E9[/eluser]
I have a site built on codeigniter using the below htaccess file which removes the need for index.php:
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?
Thanks
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