Added word boundary after system folder names to increase the regex accuracy
This commit is contained in:
parent
609bee6d08
commit
604eeacd2b
|
@ -11,7 +11,7 @@ RewriteBase /kohana/
|
||||||
</Files>
|
</Files>
|
||||||
|
|
||||||
# Protect application and system files from being viewed
|
# Protect application and system files from being viewed
|
||||||
RewriteRule ^(?:application|modules|system) - [F,L]
|
RewriteRule ^(?:application|modules|system)\b - [F,L]
|
||||||
|
|
||||||
# Allow any files or directories that exist to be displayed directly
|
# Allow any files or directories that exist to be displayed directly
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
|
Loading…
Reference in a new issue