Welcome Guest, Not a member yet? Register   Sign In
.htacess password protection folder
#3

[eluser]searain[/eluser]
http://ellislab.com/forums/viewthread/142001/#698395

This gives the answer.

All I need to do is add one more line in root .htaccess

RewriteCond $1 !^(401.shtml)

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|captcha|css|js|php|robots\.txt)
RewriteCond $1 !^(401.shtml)
RewriteRule ^(.*)$ /index.php/$1 [L]

Then I can put .php under .htaccess protection.


Messages In This Thread
.htacess password protection folder - by El Forum - 01-18-2010, 12:09 PM
.htacess password protection folder - by El Forum - 01-18-2010, 11:15 PM
.htacess password protection folder - by El Forum - 01-19-2010, 12:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB