forked from cubny/lite-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
27 lines (21 loc) · 870 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
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~cubny/lite-reader/
RewriteRule ^css/(.*\.css) public/combine.php?type=css&files=$1 [L]
RewriteRule ^javascript/(.*\.js) public/combine.php?type=javascript&files=$1 [L]
RewriteRule ^images/(.*\.(gif|png|jpg)) public/images/$1 [L]
############################################
## never rewrite for existing files, directories and links
############################################
## rewrite everything else to index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 index.php
</IfModule>