Changed example.htaccess to redirect application and system, rather than 403 forbidden
Signed-off-by: Woody Gilk <woody.gilk@kohanaphp.com>
This commit is contained in:
parent
03981ca28b
commit
ef2854556b
|
@ -11,11 +11,11 @@ RewriteBase /kohana/
|
|||
</Files>
|
||||
|
||||
# Protect application and system files from being viewed
|
||||
RewriteRule ^(?:application|modules|system)\b - [F,L]
|
||||
RewriteRule ^(?:application|modules|system)\b index.php/$0 [L]
|
||||
|
||||
# Allow any files or directories that exist to be displayed directly
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
# Rewrite all other URLs to index.php/URL
|
||||
RewriteRule .* index.php/$0 [PT]
|
||||
RewriteRule .* index.php/$0 [PT]
|
||||
|
|
Loading…
Reference in a new issue