-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
39 lines (29 loc) · 970 Bytes
/
.htaccess
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
32
33
34
35
36
37
38
39
# Turn on URL rewriting
Options +FollowSymLinks
RewriteEngine On
# Installation directory
# RewriteBase /
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
RewriteRule ^application/media/* - [PT,L]
RewriteRule ^application/resources/* - [PT,L]
RewriteRule ^(crossdomain.xml|index.php|robots.txt|favicon.ico) - [PT,L]
# Allow css and js to be displayed directly
RewriteRule ^(.*)css$ - [PT,L]
RewriteRule ^(.*)js$ - [PT,L]
RewriteRule ^(.*)jpg$ - [PT,L]
RewriteRule ^(.*)gif$ - [PT,L]
RewriteRule ^(.*)png$ - [PT,L]
RewriteRule ^(.*)swf$ - [PT,L]
RewriteRule ^(.*)flv$ - [PT,L]
RewriteRule ^(.*)f4v$ - [PT,L]
RewriteRule ^(.*)pdf$ - [PT,L]
# Allow deploy scripts to be called directly
RewriteRule ^deploy/* - [PT,L]
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT]