/
.htaccess
70 lines (60 loc) · 2.08 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
RewriteEngine On
RewriteRule ^/?$ index.php [NC,L]
RewriteRule ^suara/?$ suara.php [NC,L]
RewriteRule ^suaraku/?$ suaraku.php [NC,L]
RewriteRule ^developer/?$ developer.php [NC,L]
RewriteRule ^barang/?$ barang.php [NC,L]
RewriteRule ^barang/page/?$ barang.php [NC,L]
RewriteRule ^barang/page/([0-9]+)/?$ barang.php?page=$1 [NC,L]
RewriteRule ^barang/detail/?$ barang.php [NC,L]
RewriteRule ^barang/detail/([0-9]+)/?$ barang.php?detail=$1 [NC,L]
RewriteRule ^dispenkasi/?$ dispenkasi.php [NC,L]
RewriteRule ^error/?$ error.php [NC,L]
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##
## ERROR PAGES ##
ErrorDocument 400 /error.php
ErrorDocument 401 /error.php
ErrorDocument 402 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 405 /error.php
ErrorDocument 406 /error.php
ErrorDocument 407 /error.php
ErrorDocument 408 /error.php
ErrorDocument 409 /error.php
ErrorDocument 410 /error.php
ErrorDocument 411 /error.php
ErrorDocument 412 /error.php
ErrorDocument 413 /error.php
ErrorDocument 414 /error.php
ErrorDocument 415 /error.php
ErrorDocument 416 /error.php
ErrorDocument 417 /error.php
ErrorDocument 500 /error.php
ErrorDocument 501 /error.php
ErrorDocument 502 /error.php
ErrorDocument 503 /error.php
ErrorDocument 504 /error.php
ErrorDocument 505 /error.php
RewriteCond %{REQUEST_URI} ^/404/$ [OR]
RewriteCond %{REQUEST_URI} ^/500/$
RewriteRule ^(.*)$ /error.php [L]
#RewriteCond %{REQUEST_URI} ^/404/$
#RewriteRule ^(.*)$ /error.php [L]
#RewriteCond %{REQUEST_URI} ^/500/$
#RewriteRule ^(.*)$ /error.php [L]
## ERROR PAGES ##