-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
35 lines (28 loc) · 978 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
# 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/views/fonts/* - [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]
RewriteRule ^(.*)zip$ - [PT,L]
RewriteRule ^(crossdomain.xml|index.php|application/resources/fonts|media|woff|svg|eot|ttf|robots.txt|favicon.ico) - [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]