-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
73 lines (58 loc) · 3.18 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
71
72
73
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^login$ admin/autentikasi/login.php [L]
RewriteRule ^logout$ admin/autentikasi/logout.php [L]
# Custom error page for error 403, 404 and 500
# silahkan ganti urlnya jika pada path atau domian
ErrorDocument 404 http://localhost/perpustakaan/404.php
ErrorDocument 500 http://localhost/perpustakaan/404.php
# dashboard
# anggota
RewriteRule ^admin/anggota$ admin/index.php?page=anggota [L]
RewriteRule ^admin/add-anggota$ admin/index.php?page=add-anggota [L]
RewriteRule ^admin/edit-anggota/(.*)$ admin/index.php?page=edit-anggota&id=$1 [L]
RewriteRule ^admin/hapus-anggota/(.*)$ admin/index.php?page=hapus-anggota&act=delete&id=$1 [L]
RewriteRule ^admin/export-anggota$ admin/pages/anggota/export.php [L]
# RewriteRule ^admin/view-anggota/(.*) index.php?page=view-anggota&id=$1 [L]
# buku
RewriteRule ^admin/buku$ admin/index.php?page=buku [L]
RewriteRule ^admin/add-buku$ admin/index.php?page=add-buku [L]
RewriteRule ^admin/edit-buku/(.*)$ admin/index.php?page=edit-buku&id=$1 [L]
RewriteRule ^admin/hapus-buku/(.*)$ admin/index.php?page=hapus-buku&act=delete&id=$1 [L]
RewriteRule ^admin/export-buku$ admin/pages/buku/export.php [L]
# transaksi
RewriteRule ^admin/transaksi$ admin/index.php?page=transaksi [L]
RewriteRule ^admin/add-transaksi$ admin/index.php?page=add-transaksi [L]
RewriteRule ^admin/edit-transaksi/(.*)$ admin/index.php?page=edit-transaksi&id=$1 [L]
RewriteRule ^admin/perpanjang-transaksi/(.*)$ admin/index.php?page=perpanjang-transaksi&act=perpanjang&id=$1 [L]
RewriteRule ^admin/kembali-transaksi/(.*)$ admin/index.php?page=kembali-transaksi&act=kembali&id=$1 [L]
# kunjungan
RewriteRule ^admin/kunjungan$ admin/index.php?page=kunjungan [L]
# laporan
# RewriteRule ^admin/laporan$ admin/index.php?page=laporan [L]
RewriteRule ^admin/laporan-kunjungan$ admin/index.php?page=laporan-kunjungan [L]
RewriteRule ^admin/laporan-peminjaman$ admin/index.php?page=laporan-peminjaman [L]
RewriteRule ^admin/laporan-pengembalian$ admin/index.php?page=laporan-pengembalian [L]
RewriteRule ^admin/laporan-sanksi$ admin/index.php?page=laporan-sanksi [L]
# export laporan
RewriteRule ^admin/export/laporan-buku/(.*)$ admin/export/laporan_kunjungan.php?waktu=
# pengaturan
# prodi
RewriteRule ^admin/prodi$ admin/index.php?page=prodi [L]
RewriteRule ^admin/add-prodi$ admin/index.php?page=add-prodi [L]
RewriteRule ^admin/edit-prodi/(.*)$ admin/index.php?page=edit-prodi&id=$1 [L]
# kategori
RewriteRule ^admin/kategori$ admin/index.php?page=kategori [L]
RewriteRule ^admin/add-kategori$ admin/index.php?page=add-kategori [L]
RewriteRule ^admin/edit-kategori/(.*)$ admin/index.php?page=edit-kategori&id=$1 [L]
# lokasi
RewriteRule ^admin/lokasi$ admin/index.php?page=lokasi [L]
RewriteRule ^admin/add-lokasi$ admin/index.php?page=add-lokasi [L]
RewriteRule ^admin/edit-lokasi/(.*)$ admin/index.php?page=edit-lokasi&id=$1 [L]
# pengguna
RewriteRule ^admin/pengguna$ admin/index.php?page=pengguna [L]
RewriteRule ^admin/add-pengguna$ admin/index.php?page=add-pengguna [L]
RewriteRule ^admin/edit-pengguna/(.*)$ admin/index.php?page=edit-pengguna&id=$1 [L]
RewriteRule ^admin/hapus-pengguna/(.*)$ admin/index.php?page=hapus-pengguna&act=delete&id=$1 [L]
Options All -Indexes
</IfModule>