forked from system76/beansbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.htaccess
More file actions
31 lines (24 loc) · 809 Bytes
/
Copy pathexample.htaccess
File metadata and controls
31 lines (24 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Turn on URL rewriting
RewriteEngine On
# Disable Log Dumps
# If you are testing you should comment this line out.
SetEnv KOHANA_ENV PRODUCTION
# Force SSL
# Comment out these two lines if you are testing and would prefer
# to use regular HTTP.
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Installation directory
RewriteBase /
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
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]