-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
40 lines (32 loc) · 1.14 KB
/
.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
40
RewriteEngine On
RewriteRule ^.well-known(.*)$ - [L,NC]
#RewriteCond %{HTTPS} off
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<IfModule mod_rewrite.c>
RewriteEngine on
Options -Indexes
RewriteRule ^404$ 404.php [L]
RewriteRule ^logout?$ sw-mod/out/logout.php
#---------------- Action -------------------------------------
RewriteRule ^sw-proses?$ action/sw-proses.php [L]
RewriteRule ^print?$ action/sw-print.php [L]
RewriteRule ^timthumb?$ sw-library/timthumb.php [L]
RewriteRule ^oauth/google?$ action/sw-google.php [L]
# --------------- Index + halaman ------------------------------------
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^$ index.php?mod=home [L]
RewriteRule ^(.*)$ index.php?mod=$1 [L]
</IfModule>
<IfModule mod_php5.c>
php_value short_open_tag 1
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>